Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Welcome to Scripts Only!

Peter Linden
Registered User
Join date: 18 Nov 2002
Posts: 177
04-14-2003 14:13
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.
Lady Phoenix
Second Life Resident
Join date: 21 Nov 2004
Posts: 1
Swimmin Script
09-13-2005 13:41
Where can I get a script to make fish swim?
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
02-22-2008 04:00
This is the last thread...but to whom do we submit our scripts? Is there a public library?
_____________________