~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetObjPosition|Get]] * [[4rpl:commands:SetObjPosition|Set]] ====== SetObjPosition ====== SetObjPosition(<-Unit "ObjName" <-pos <-world) ===== Description ===== Sets the position vector (X,Y,Z coordinates) of a unit's object. Objects are the sub-parts that make up a unit. If world is false, then the coordinates are relative to the object's parent, otherwise the coordinates are world coordinates. If the object is the root, then the position is in world coordinates regardless world. Note, use "" (empty string) to indicate the root level object. ===== Examples ===== SetObjPosition(self "Arm" <-pos false) <=[[4rpl:start| Index]]