distance2D

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.50
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.50

Description

Description:
Returns a 2D distance (distance projected to X,Y plane) in meters between two Objects or two Positions or Object and Position.

distance2D.jpg

Syntax

Syntax:
param1 distance2D param2
Parameters:
param1: Object or Array in format Position or Position2D
param2: Object or Array in format Position or Position2D
Return Value:
Number - Distance in meters or 1e10 if distance cannot be calculated

Examples

Example 1:
_meters = player distance2D heli;

Additional Information

Multiplayer:
-
See also:
distancedistanceSqrvectorDistance

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section