Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

move prim script wanted

native Bigbear
Registered User
Join date: 14 Dec 2008
Posts: 17
09-21-2009 07:22
looking for someone to make me a script that will move a prim left to right soon as i rezz it,i need this for a moving target,wiling to pay so if you can help message me here or in game
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
09-21-2009 18:53
Simply put this script into the object's content, whenever every time it's rezzed, it'll move according to the offset value. In this case the object will move 1.0m above. However, there is a LSL limit that the value is within 10.0m. :)


CODE

vector offset = <0.0,0.0,1.0>;

default
{
state_entry()
{
}

on_rez(integer int)
{
llSetPos(llGetPos() + offset);
}
}