{"name":"BIS_fnc_nearestHelipad","title":"BIS fnc nearestHelipad","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_nearestHelipad","revid":348117,"updated":"2023-11-08T11:32:17Z","groups":["Map and Markers"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Finds the nearest helipad of given type.","syntaxes":[{"syntax":"[position, radius, random, types] call BIS_fnc_nearestHelipad","params":[{"name":"position","type":"Array format Position","optional":true,"default":"position vehicle player","description":"center position","type_expr":"Position","types":["Array","Position"],"text":"position: Array format Position - (Optional, default position vehicle player) center position"},{"name":"radius","type":"Number","optional":true,"default":"999999","description":"radius of the area to search in meters","type_expr":"Number","text":"radius: Number - (Optional, default 999999) radius of the area to search in meters"},{"name":"random","type":"Boolean","optional":true,"default":"false","description":"if true a random helipad will be selected if multiple are found","type_expr":"Boolean","text":"random: Boolean - (Optional, default false) if true a random helipad will be selected if multiple are found"},{"name":"types","type":"Array","optional":true,"default":"[\"Heliport\"]","description":"location types to be searched for. See nearestLocations for more information\n\n> [!NOTE]\n> **Arma 3:** Default value won't work in Arma 3. Only types listed in CfgLocationTypes are supported","type_expr":"Array","text":"types: Array - (Optional, default [\"Heliport\"]) location types to be searched for. See nearestLocations for more information\n\n> [!NOTE]\n> **Arma 3:** Default value won't work in Arma 3. Only types listed in CfgLocationTypes are supported"}],"returns":{"type":"Array","type_expr":"Array","description":"in format:\n- 0: Position - Position of the selected location - 1: Object - Helipad - 2: Position - Position of the helipad","text":"Array in format:\n\n- 0: Position - Position of the selected location\n- 1: Object - Helipad\n- 2: Position - Position of the helipad"}}],"see_also":["nearestObjects"]}