Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Where can I find a simple rezzing script?

Candy Lisle
No one special just...
Join date: 26 Feb 2007
Posts: 110
08-14-2008 12:37
I'm trying to find a simple script that will rez an item placed in the same prim (say you designate the item name in the script) and if the item is deleted or taken it will rez another. My rides I've bought use this and I'd like to use this method for rezzing other items that people use.

Not any type of zero prim rezzer this would simply rez an item and then when that item is moved it would rez another in the same place.

Thanks ahead of time.
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
08-14-2008 13:07
Like:

default
{
touch_start(integer total_number)
{
llRezObject("Object", llGetPos() + (llRot2Fwd(llGetRot())*4), ZERO_VECTOR, llGetRot(), 0);
}
}

You can make the object temp-on-rez so it poofs when the user gets up.

Wait, where am I? Scripting tips? Not really the right forum. Curses, new posts!
Candy Lisle
No one special just...
Join date: 26 Feb 2007
Posts: 110
08-14-2008 13:24
Thank you so much! How can I have this rez another if the vehicle is moved?
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
08-14-2008 14:48
In the object_rez event that you get when rezzing the object start a repeating sensor:

object_rez(key objectID)
{
// scan for the rezzed object every 5 seconds
llSensorRepeat("", objectID, PASSIVE|ACTIVE, <rez distance>, PI, 5.0);
}

sensor(integer num) {} // empty senspr event required

no_sensor()
{
llSensorRemove();
// put rezzing code here
}