Push All Scripts
This commit is contained in:
3
ColorChange/ColorChange.sol
Normal file
3
ColorChange/ColorChange.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="ColorChange">
|
||||
<Project name="ColorChange" path="ColorChange\ColorChange.prj" active="true"/>
|
||||
</Solution>
|
||||
6
ColorChange/ColorChange/ColorChange.prj
Normal file
6
ColorChange/ColorChange/ColorChange.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="ColorChange" guid="D700FB2E-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D700FC97-6C00-1014-B904-200204C60A89">
|
||||
<Script name="ColorChange_1.lsl" guid="D7011A47-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
45
ColorChange/ColorChange/Object/ColorChange_1.lsl
Normal file
45
ColorChange/ColorChange/Object/ColorChange_1.lsl
Normal file
@@ -0,0 +1,45 @@
|
||||
// :CATEGORY:Color
|
||||
// :NAME:ColorChange
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:51
|
||||
// :ID:197
|
||||
// :NUM:270
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// ColorChange.lsl
|
||||
// :CODE:
|
||||
|
||||
vector c;
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llListen(0,"","","colors");
|
||||
llListen(0,"","","stop");
|
||||
c=llGetColor(0);
|
||||
}
|
||||
listen (integer channel, string name, key id, string message)
|
||||
{
|
||||
if (message == "colors")
|
||||
{
|
||||
float random = llFrand(1.9)+.5;
|
||||
llSetTimerEvent(random);
|
||||
}
|
||||
if (message == "stop")
|
||||
{
|
||||
llSetTimerEvent(0.0);
|
||||
llSetColor(c,-1);
|
||||
}
|
||||
|
||||
}
|
||||
timer()
|
||||
{
|
||||
float x = llFrand(1.0);
|
||||
float y = llFrand(1.0);
|
||||
float z = llFrand(1.0);
|
||||
llSetColor(<x,y,z>,-1);
|
||||
}
|
||||
|
||||
} // END //
|
||||
Reference in New Issue
Block a user