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