Arma 3 Scripting

Function in Geometry

BIS_fnc_relativeDirTo

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.

Note

Arma 3: Use getRelDir instead.

Syntax

[from, to] call BIS_fnc_relativeDirTo

Parameters:

Returns: Number

Examples

Example 1

[[0,0,0], player] call BIS_fnc_relativeDirTo;

See also

getPos · getRelDir · direction