This forums is designed to host scripts only.
Each forum thread will begin with a script, comments and improvements can be posted thereafter.
To submit a script, please use the following format, then send the script to [email]contact@lindenlab.com[/email]. Additions to the format will be accepted, scripts submitted that are NOT following this format will not be accepted.
Spinning Object
Summary: The following script will make an object spin. To use, merely
create any single-primitive object, attach this script, and it will
spin at a slow readable rate.
Usage: This is a great script for spinning signs, rotating doors and
silly attachments. It uses very little processing power and is amusing
if the object is attached to your head.
Script:
default
{
state_entry()
{
llTargetOmega(<0,0,1>, 2, 2);
}
}
Notes:
I've found that setting past 8 makes it spin a little too fast. To
speed the rotation of the spinning object, merely change the line
llTargetOmega(<0,0,1>, 2, 2); to read
llTargetOmega(<0,0,1>, 3, 2);
to go faster or
llTargetOmega(<0,0,1>, 4, 2);
to go even faster or
llTargetOmega(<0,0,1>, 5, 2);
to go yet faster. You get the idea.
Credits:
Script written by:
Cory Linden 2-27-03
Modified and commented by:
Peter Linden 3-3-03
To use a script, see the scripting guide in the next thread.