distance2D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.49|= Game version |arg= global...")
 
mNo edit summary
Line 15: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________


| param1 '''distance''' param2 |= Syntax
| param1 '''distance2D''' param2 |= Syntax


|p1= param1: [[Object]] or [[Array]] in format [[Position]] or [[Position2D]]|= Parameter 1
|p1= param1: [[Object]] or [[Array]] in format [[Position]] or [[Position2D]]|= Parameter 1

Revision as of 10:25, 13 July 2015

-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 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

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