vectorDir objectName

Operand types

objectName: Object

Type of returned value

Description

Return object's normalized direction vector in world space ([x,y,z]).

- unit facing North would return [0,1,0]
- unit facing East would return [1,0,0]
- unit facing South would return [0,-1,0]
- unit facing West would return [-1,0,0]

Used In

ArmA

Example

_dirVector = vectorDir _unit;
Search OFPEC COMREF

Advertisement