Arma 3 Scripting

Topic in Scripting

Vector3D

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

See also Vector2D. Format:

[x, y, z] where x, y and z are Numbers

Description:

Represents a 3-dimensional vector in space.

A normalised vector means that each value is within range -1..+1.

The return array can be processed-converted into degrees as follows:

_vDir = player weaponDirection primaryWeapon player;
_aDir = _vDir # 0 atan2 _vDir # 1;