mirror of
https://github.com/liftedpixel/lslscripts.git
synced 2026-08-14 00:58:07 +00:00
Create Random color on rez.lsl
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
vector color;
|
||||
|
||||
RandomColor()
|
||||
{
|
||||
color = (<llFrand(1), llFrand(1), llFrand(1)>);
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
on_rez(integer start_param)
|
||||
{
|
||||
RandomColor();
|
||||
llSetColor(color, ALL_SIDES);
|
||||
}
|
||||
|
||||
state_entry()
|
||||
{
|
||||
RandomColor();
|
||||
llSetColor(color, ALL_SIDES);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user