RandomPrimParams: Difference between revisions
Jump to navigation
Jump to search
Created page with " integer int=3; default { state_entry() { llSetTimerEvent(0.1); // How fast repeat event } timer() { float r = llFrand(1); float g = llFrand(1); float b = llFra…" |
No edit summary |
||
| Line 1: | Line 1: | ||
<lsl> integer int=3; | |||
default { | default { | ||
| Line 21: | Line 21: | ||
} | } | ||
} | } | ||
</lsl> | |||
Revision as of 17:35, 29 April 2012
<lsl> integer int=3;
default {
state_entry() {
llSetTimerEvent(0.1); // How fast repeat event
}
timer() {
float r = llFrand(1);
float g = llFrand(1);
float b = llFrand(1);
float r2 = llFrand(1);
float g2 = llFrand(1);
float b2 = llFrand(1);
if(int==1)
++int;
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_COLOR,ALL_SIDES, <r,g,b>, 1.0]); // You can use every PrimParams here like for example PRIM_GLOW
} else {
int=1;
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_COLOR,ALL_SIDES, <r2,g2,b2>,1.0]); // Same here
} }
} </lsl>