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
Color ColorChange  

ColorChange

ColorChange.lsl

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

the Zip file

Download all files for ColorChange
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. ColorChange_1.lsl
1
2 vector c;
3 default
4 {
6 {
7 llListen(0,"","","colors");
8 llListen(0,"","","stop");
9 c=llGetColor(0);
10 }
11 listen (integer channel, string name, key id, string message)
12 {
13 if(message == "colors")
14 {
15 float random = llFrand(1.9)+.5;
16 llSetTimerEvent(random);
17 }
18 if(message == "stop")
19 {
20 llSetTimerEvent(0.0);
21 llSetColor(c,-1);
22 }
23
24 }
25 timer()
26 {
27 float x = llFrand(1.0);
28 float y = llFrand(1.0);
29 float z = llFrand(1.0);
30 llSetColor(<x,y,z>,-1);
31 }
32
33 } // END //

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