distance2D: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.49|= Game version |arg= global...") |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| param1 ''' | | 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
Description
- Description:
- Returns the 2D distance (projected to X,Y plane) in meters between two Objects or Positions or Object and Position.
- 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]]