LlSetPos
De DigiWiki.
Version du 28 septembre 2012 à 09:53 par Djphil (discuter | contributions)
//Move the object up 1m when someone touches it. default { touch_start(integer i) { llSetPos(llGetPos() + <0,0,1>); } } // to bypass the small movement bug use this // - created by Madpeter Zond // notes: it does not check if the movement would go out of limit range for linked prims llSetLocalPos(vector offset) { vector save = offset; if(offset.x < 0.0) offset.x -= 1; else offset.x += 1; if(offset.y < 0.0) offset.y -= 1; else offset.y += 1; if(offset.z < 0.0) offset.z -= 1; else offset.z += 1; llSetPos(offset); llSetPos(save); }