|
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: llSetPos(llGetLocalPos()+llRot2Up(llGetRot())) For down: 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: default { on_rez(integer param) { llSetPos(llGetLocalPos()+llRot2Up(llGetRot())); } }
|