Arma 3 Scripting

getDir

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the object heading in the range 0..360.

Note

Arma 3: The alternative syntax gets heading from one object or position to another object or position, and should be used instead of BIS_fnc_dirTo.

Syntax

Syntax 1

getDir object

Parameters:

Returns: Number

Syntax 2

since arma3 1.56

pos1 getDir pos2

Parameters:

Returns: Number

Examples

Example 1

_azimuth = getDir player;

Example 2

_azimuth = player getDir tank;

See also

getDirVisual · direction · getRelDir

Community notes