~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetUnitForward|Get]]
* [[4rpl:commands:SetUnitForward|Set]]
====== SetUnitForward ======
SetUnitForward(<-UID <-forward)
===== Description =====
Set the 'forward' vector of a unit. The forward vector is the direction of a units positive Z axis. For an unrotated unit the forward direction would be
{0 0 1}. As a unit rotates the direction of the Z axis can point in any direction. SetUnitForward takes a vector of three values, X, Y, and Z, that are the direction
that the z axis should point.
===== Examples =====
SetUnitForward(<-UID) V3(0 45 0))
<=[[4rpl:start| Index]]