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
Building Show_Hide  

Show_Hide

Show_Hide.lsl

Category: Building
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Show_Hide
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Show_Hide_1.lsl
1
2 1// remove this number for the script to work.
3
4
5 //This is the command used to make the object show itself. You can change it to what ever you like.
6 string sCommand = "show";
7
8 //This is the command used to make the obnject hide itself. You can change it to what ever you like.
9 string hCommand = "hide";
10
11 //This is the channel which the object will listen to. It is set to channel 9 so to make it work you will say '/9' then the command.
12 integer chan = 9;
13
14 //this is the time that the object will display itself for before it automatically hides itself, it is set to 0 so you will se the box when you rez it.
15 integer time = 0;
16
17 //This script automatically turns the object to phantom, If you wish it to be solid then change this value to FALSE.
18 integer switch = TRUE;
19
20 //---------------------------------------------------------------------
21
22 default
23 {
25 {
26 llListen(chan,"",NULL_KEY,"");
27 llSetStatus(STATUS_PHANTOM,switch);
28 llSetTimerEvent(time);
29 }
30
31 listen(integer channel, string name, key id, string msg)
32 {
33 if(msg == sCommand)
34 {
36 llSetTimerEvent(time);
37
38 }
39
40 if(msg == hCommand)
41 {
43 }
44 }
45 timer()
46 {
48 }
49 on_rez(integer start_param)
50 {
52 }
53
54
55 }
56 // END //

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