Jump to content

This might not be right forums [I'm new so...]


You are about to reply to a thread that has been inactive for 4504 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

This script will make the root prim spin. The root prim is the last linked prim which shows as yellow when editing. default{    state_entry()    {       llTargetOmega(<0,0,1>,0.3,PI);    }}  If you want the prim to spin in a different direction change the numbers in <0,0,1>. Eg. <1,0,0> Then save the script and test it.This next script will allow you to turn rotation on and off. When it is inside the prim say 'rotation on' in local chat to turn on, and 'rotation off' to turn off. Only the owner can turn it on and off. rotation rot;vector pos;default{    state_entry()    {        llListen(0,"",llGetOwner(),"");        rot = llGetRot();        pos = llGetPos();           }    on_rez(integer sp)    {        llResetScript();    }     listen(integer chan, string name, key id, string message)     {         if(llToLower(message) == "rotation on")         {             llWhisper(0,"Turning Rotation On");             llTargetOmega(<0,0,1>,0.3,1);             llSetPos(llGetPos() + <0,0,0.01>);             llSetPos(pos);                     }         else if(llToLower(message) == "rotation off")         {             llWhisper(0,"Turning Rotation Off");             llTargetOmega(<0,0,0>,0,0);                        llSetRot(rot);        }    }    moving_end()    {        rot = llGetRot();        pos = llGetPos();    }            }    

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4504 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...