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 Simple_Light_1  

Simple_Light_1

Simple Light 1.lsl

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

the Zip file

Download all files for Simple_Light_1
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Simple_Light_1_1.lsl
1
2 // Simple Voice Controlled Light
3 // By: Malaer Sunchaser
4 // Say on and off, to turn the light on and off. On is white light, off turns the light black
5 // and produces no light! Light only turns on for the owner of it!
6
7 vector on = <1.0,1.0,1.0>;
8 vector off = <0.0,0.0,0.0>;
9
10 key owner;
11
12 default
13 {
15 {
16 llWhisper(0, "Light Activated");
17 owner = llGetOwner();
18 llListen(0,"",owner,"on");
19 llListen(0,"",owner,"off");
20 }
21
22 listen(integer channel, string name, key id, string m)
23 {
24 if(m == "on")
25 {
27 }
28 if(m == "off")
29 {
31 }
32 }
33 }// END //

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