Arma 3 Scripting

BIS_fnc_dirTo

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

Function · Markdown · JSON · original wiki page

Description

Function which returns vector direction from pos1 to pos2.

Note

Arma 3: Use obj1 getDir obj2 instead of BIS_fnc_dirTo.

Syntax

[param1, param2] call BIS_fnc_dirTo

Parameters:

Returns: Number

Examples

Example 1

sets unit1 in the direction of unit2

unit1 setDir ([unit1, unit2] call BIS_fnc_dirTo);

See also

getDir · setDir

Community notes