distance2D

From Bohemia Interactive Community
Revision as of 11:22, 13 July 2015 by Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.49|= Game version |arg= global...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.49|1.49]]
Hover & click on the images for description

Description

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

distance2D.jpg
Groups:
Uncategorised

Syntax

Syntax:
param1 distance 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

See also:
distancedistanceSqrvectorDistance

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

[[Category:Introduced with arma3dev version 1.49]][[ Category: arma3dev: New Scripting Commands | DISTANCE2D]][[ Category: arma3dev: Scripting Commands | DISTANCE2D]]

Notes

Bottom Section