Arma 3 Scripting

BIS_fnc_relativeDirTo

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · 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