Arma 3 Scripting

getDirVisual

  • Global argument
  • Arma 3 v1.32

Command · also in Render Time Scope · Markdown · JSON · original wiki page

Description

Returns object's heading in the range from 0 to 360 in render time scope.

Note

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

Syntax

Syntax 1

getDirVisual object

Parameters:

Returns: Number

Syntax 2

since arma3 2.12

pos1 getDirVisual pos2

Parameters:

Returns: Number

Examples

Example 1

_dir = getDirVisual player;

Example 2

_azimuth = player getDirVisual tank;

See also

getDir · direction