User Tools

Site Tools


4rpl:commands:setunitforward

Index

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))

Index

4rpl/commands/setunitforward.txt · Last modified: 2021/01/24 14:53 by Sanian