{"name":"BIS_fnc_distance2D","operator":null,"title":"BIS fnc distance2D","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_distance2D","revid":348503,"updated":"2023-11-08T13:01:33Z","groups":["Geometry"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the distance between two objects or positions.\n\n> [!NOTE]\n> **Arma 3:** Use distance2D instead.","syntaxes":[{"syntax":"[param1, param2] call BIS_fnc_distance2D","since":null,"effect":null,"exec":null,"params":[{"name":"param1","type":"Object or Array in format Position or Position2D","optional":false,"default":null,"description":null,"types":["Object","Array","Position","Position2D"],"since":null,"text":"param1: Object or Array in format Position or Position2D"},{"name":"param2","type":"Object or Array in format Position or Position2D","optional":false,"default":null,"description":null,"types":["Object","Array","Position","Position2D"],"since":null,"text":"param2: Object or Array in format Position or Position2D"}],"returns":{"type":"Number","types":["Number"],"description":"distance in meters or 1e10 if distance cannot be calculated","text":"Number - distance in meters or 1e10 if distance cannot be calculated"}}],"examples":[{"text":"```sqf\n[player, rescueHelicopter] call BIS_fnc_distance2D;\n```","code":["[player, rescueHelicopter] call BIS_fnc_distance2D;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["distance2D","BIS_fnc_distance2Dsqr"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Geometry","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}