Arma 3 Scripting

Function in Geometry

BIS_fnc_dirTo

Also available as Markdown and JSON, or read the 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