|
Dayz Hutchence
Registered User
Join date: 4 Oct 2005
Posts: 1
|
09-24-2007 16:32
ok, i got the basics of this script, but when i link scripted object to a non scripted object it won't work, can anyone help me out here. integer x = 0; default { state_entry() { llSetStatus(STATUS_BLOCK_GRAB, TRUE); } touch_start (integer t) { if (x == 0) { llSetPos(llGetPos()+<0,1,0>  ; x = 1; } else { llSetPos(llGetPos()+<0,-1,0>  ; x = 0; } } }
|
|
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
|
09-25-2007 00:11
Try this tip from the llSetPos() wiki entry: Q: Shouldn't this be: llSetPos(llGetPos() + <0, 0, 1>  ? A: No, not for child prims -- their position is always relative to the parent. If you want to move it relative to its current offset from the parent, you'd use: llSetPos(llGetLocalPos() + <0, 0, 1>  ;.
|