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:
object: Object
Returns: Number
Syntax 2
since arma3 2.12
pos1 getDirVisual pos2
Parameters:
pos1: Object, Position2D or Position3D - from wherepos2: Object, Position2D or Position3D - to where
Returns: Number
Examples
Example 1
_dir = getDirVisual player;
Example 2
_azimuth = player getDirVisual tank;