Warning: file_put_contents(/ff_78d7c1ebfc95dcdc2543d19d1fc84f4bbeb7a59df2247b9b.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
vectorDir - OFPEC Scripting Command Reference | OFPEC The Editing Center

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;

Advertisement