Create Random color on rez.lsl

This commit is contained in:
Jessica Pixel
2014-11-17 14:27:50 -05:00
parent d14dc6d76e
commit 624cde8186
+21
View File
@@ -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);
}
}