Arma 3 Scripting

Command in Math - Geometry

distance2D

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

Description

Returns a 2D distance (distance projected to X,Y plane) in meters between Objects and/or Positions.

Syntax

from distance2D to

Parameters:

Returns: Number - distance in meters or 1e10 if distance cannot be calculated

Examples

Example 1

_meters = player distance2D heli;

See also

distance · distanceSqr · vectorDistance