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 Color_Vector_on_Color_Change  

Color_Vector_on_Color_Change

Color Vector on Color Change.lsl

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

the Zip file

Download all files for Color_Vector_on_Color_Change
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Color_Vector_on_Color_Change_1.lsl
1
2 //Aki-Tools
3 //"ColorVec on ColorChange" 01/27/2004
4 //This script is useful if you are trying to figure out a color vector. When you change the color of the object this script is on, the object will whisper the new color vector.
5
6 init()
7 {
8 llSetColor(<1,1,1>, ALL_SIDES);
9 }
10
11 colorize()
12 {
13 integer s;
14 vector color = llGetColor(1);
15 llWhisper(0, "Current Color Vector: [ "+(string)color+" ]");
16 }
17
18 default
19 {
21 {
22 init();
23 }
24
25 on_rez(integer a)
26 {
27 init();
28 }
29
30 touch_start(integer total_number)
31 {
32 colorize();
33 }
34
35 changed(integer change)
36 {
37 if(change & CHANGED_COLOR)
38 {
39 colorize();
40 }
41 }
42 }
43
44 state sold
45 {
46 state_entry() { }
47 }// END //

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