distance2D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the 2D distance ([[distance]] projected to X,Y plane) in meters between two [[Object]]s or two [[Position]]s or [[Object]] and [[Position]].
| Returns a 2D distance ([[distance]] projected to X,Y plane) in meters between two [[Object]]s or two [[Position]]s or [[Object]] and [[Position]].
<br><br>
<br><br>
[[Image:distance2D.jpg|400px]]
[[Image:distance2D.jpg|400px]]

Revision as of 11:52, 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 a 2D distance (distance projected to X,Y plane) in meters between two Objects or two 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