Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how would I move a linked prim

William Pan
Registered User
Join date: 28 Jun 2006
Posts: 3
06-28-2006 18:07
how would i move a linked prim it's z axis up and down
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
06-28-2006 18:10
For up:
CODE
llSetPos(llGetLocalPos()+llRot2Up(llGetRot()))

For down:
CODE
llSetPos(llGetLocalPos()+(llRot2Up(llGetRot()) * -1))
William Pan
Registered User
Join date: 28 Jun 2006
Posts: 3
thanks
06-28-2006 18:15
thank you

but i'm very new to scripting so how would i add that ?
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
06-28-2006 18:20
Just put that wherever you want it to move. For example, if you wanted it to move up one meter when it is rezzed:
CODE

default
{
on_rez(integer param)
{
llSetPos(llGetLocalPos()+llRot2Up(llGetRot()));
}
}