I am trying to make a script that uses llSetLinkPrimitiveParamsFast with PRIM_TEXTURE to rotate a texture. Here is what I have so far. integer WHEEL = 4;
float Rotate = PI;
default
{
link_message(integer sender_num, integer num, string str, key id)
{
if (str == "Spin")
{
integer count = 0;
while(count<llFrand(50.0))
{
Rotate = Rotate + count;
llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW, ALL_SIDES, 0.1,PRIM_TEXTURE,ALL_SIDES,"roulette_image copy",<1,1,0>,<0,0,0>,Rotate]);
llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW, ALL_SIDES, 0.0]);
++count;
}
}
}
} I am basically trying to spin a wheel around a few times, and have it stop randomly in a different spot every time it is spun. Any help would be appreciated.