~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetObjForward|Get]] * [[4rpl:commands:SetObjForward|Set]] ====== GetObjForward ====== GetObjForward(<-Unit "ObjName") ->pos ===== Description ===== Returns a vector (X,Y,Z) representing the object's forward direction (the positive z direction of the unit). The returned vector is in world space, and is not relative to the object's parent. Note, use "" (empty string) to indicate the root level object. ===== Examples ===== GetObjForward(self "Arm") ->pos <=[[4rpl:start| Index]]