BIS_fnc_distance2Dsqr

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Returns the SQUARE of the distance between the two objects or positions "as the crow flies" (ignoring elevation).
Arma 3 logo black.png
This function became obsolete with the introduction of distanceSqr


Syntax

Syntax:
[Point_1,Point_2] call BIS_fnc_distance2Dsqr;
Parameters:
Point_1: Object or Position
Point_2: Object or Position
Return Value:
Number - Squared distance

Examples

Example 1:
[ player, soldier_1 ] call BIS_fnc_distance2Dsqr
Example 2:
[ [100,100,0],[0,0,0] ] call BIS_fnc_distance2Dsqr

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_distance2Ddistance2Ddistance

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