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_Owner_Only  

Show_Hide_Owner_Only

Show_Hide (Owner Only).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_Owner_Only
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Show_Hide_Owner_Only_1.lsl
1
2 1// Remove this number for this script to work
3
4
5
6
7
8 //This is the command used to make the onject show itself. You can change it to what ever you like.
9 string sCommand = "show";
10
11 //This is the command used to make the onject hide itself. You can change it to what ever you like.
12 string hCommand = "hide";
13
14 //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.
15 integer chan = 9;
16
17 //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.
18 integer time = 0;
19
20 //This script automatically turns the object to phantom, If you wish it to be solid then change this value to FALSE.
21 integer switch = TRUE;
22
23 //---------------------------------------------------------------------
24
25 default
26 {
28 {
29 llListen(chan,"",llGetOwner(),"");
30 llSetStatus(STATUS_PHANTOM,switch);
31 llSetTimerEvent(time);
32 }
33
34 listen(integer channel, string name, key id, string msg)
35 {
36 if(msg == sCommand)
37 {
39 llSetTimerEvent(time);
40
41 }
42
43 if(msg == hCommand)
44 {
46 }
47 }
48 timer()
49 {
51 }
52 on_rez(integer start_param)
53 {
55 }
56
57
58 }
59 // END //

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