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
Cloaking Cloaking_Control_Script  

Cloaking_Control_Script

Cloaking Control Script.lsl

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

the Zip file

Download all files for Cloaking_Control_Script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Cloaking_Control_Script_1.lsl
1
2 init()
3 {
4 // Set up a listen callback for whoever owns this object.
5 key owner = llGetOwner();
6 llWhisper(0, "Cloaking device installed");
7 llListen(0, "", owner, "");
8 }
9
10 default
11 {
13 {
14 init();
15 }
16
17 on_rez(integer start_param)
18 {
19 init();
20 }
21
22 listen( integer channel, string name, key id, string message )
23 {
24 if( message == "wear katana" )
25 {
26 llMessageLinked(LINK_ALL_CHILDREN, 0, "cloak", id);
27 llSetStatus(STATUS_PHANTOM, TRUE);
29 }
30 if( message == "drop katana" )
31 {
32 llMessageLinked(LINK_ALL_CHILDREN, 0, "decloak", id);
33 llSetStatus(STATUS_PHANTOM, FALSE);
35 }
36 if( message == "phantom" )
37 {
38 llMessageLinked(LINK_ALL_CHILDREN, 0, "phantom", id);
39 llSetStatus(STATUS_PHANTOM, TRUE);
40 }
41 if( message == "solid" )
42 {
43 llMessageLinked(LINK_ALL_CHILDREN, 0, "solid", id);
44 llSetStatus(STATUS_PHANTOM, FALSE);
45 }
46 }
47 }// END //

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