Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Pose Balls FlipperPAs_autotransparent_minimum  

FlipperPAs_autotransparent_minimum

FlipperPA's auto-transparent minimum lag pose thingy.lsl

Category: Pose Balls
By : FLipperPA
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for FlipperPAs_autotransparent_minimum
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. FlipperPAs_autotransparent_minimum__1.lsl
1
2 // FlipperPA's auto-transparent minimum lag pose thingy.
3
4 // STEP 1: Drop your pose into an object inventory with this script (only 1)
5 // STEP 2: Simply enter the text you wish to hover about the pose object below
6
7 string DISPLAY_TEXT = "Float";
8
9 // STEP 3: Hit "SAVE" below. If you change the pose, you can reset the script to re-read the pose
10
11 /////////////////////// DESCRIPTION AND USE ////////////////////////
12
13 //This script will automatically turn the prim it uses transparent and solid when used. It automatically reads the animation in inventory so you should have to modify anything other than the "Sit Replacement Text" at the top. It will cause almost no lag to your sim.
14 //Another advantage: I'm calling the transparent and solid textures by key, so you don't have to put any textures into the prim's inventory - just the script and the animation you want triggered. I'm sure they can be improved a bit, but here they are.
15 //Enjoy,
16
17 //-Flip
18
19 /////////////////////// DO NOT CHANGE BELOW ////////////////////////
20 string ANIMATION;
21 integer is_sitting;
22
23 default
24 {
26 {
28 is_sitting = 0;
29 llSitTarget(<0,0,.1>,ZERO_ROTATION);
30 llSetTexture("5748decc-f629-461c-9a36-a35a221fe21f",ALL_SIDES);
31 llSetText(DISPLAY_TEXT,<1,1,1>,1);
32 }
33
34 changed(integer change)
35 {
36 if(change & CHANGED_LINK)
37 {
39
40 if(av != NULL_KEY)
41 {
43 }
44 else
45 {
47 {
48 is_sitting = 0;
49 llStopAnimation(ANIMATION);
50 llSetText(DISPLAY_TEXT,<1,1,1>,1);
51 llSetTexture("5748decc-f629-461c-9a36-a35a221fe21f",ALL_SIDES);
52 }
53 }
54
55 }
57 }
58
60 {
62 {
63 is_sitting = 1;
64 llStopAnimation("sit_generic");
65 llStopAnimation("sit");
66 llStartAnimation(ANIMATION);
67 llSetTexture("f54a0c32-3cd1-d49a-5b4f-7b792bebc204",ALL_SIDES);
68 llSetText("",<1,1,1>,1);
69 }
70 }
71
72 on_rez(integer start_param)
73 {
75 }
76 } // END //

Back to the Best Free Tools in Second Life and OpenSim.