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
Light Light_Bulb_Broadcaster  

Light_Bulb_Broadcaster

Light Bulb Broadcaster.lsl

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

the Zip file

Download all files for Light_Bulb_Broadcaster
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Light_Bulb_Broadcaster_1.lsl
1
2 integer status = TRUE;
3 integer passtouches = FALSE;
5 list off = [PRIM_MATERIAL,PRIM_MATERIAL_GLASS];
6 default
7 {
9 {
11 llPassTouches(passtouches);
12 }
13
14 touch_start(integer total_number)
15 {
16 integer linkNum = llGetLinkNumber();
17
18 status = !status;
19
20 if(status){
22 llMessageLinked(LINK_ALL_OTHERS, 0, "", "on");
23 }else{
24 llMessageLinked(LINK_ALL_OTHERS, 0, "", "off");
26 }
27 }
28 }
29
30
31 // END //

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