User Tools

Site Tools


4rpl:commands:setobjforward

Index

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)

Index

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