{"name":"BIS_fnc_nearestHelipad","operator":null,"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","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Finds the nearest helipad of given type.","syntaxes":[{"syntax":"[position, radius, random, types] call BIS_fnc_nearestHelipad","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"Array format Position","optional":true,"default":"position vehicle player","description":"center position","types":["Array","Position"],"since":null,"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","types":["Number"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Array"],"since":null,"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 in format:","types":["Array"],"description":"0: Position - Position of the selected location - 1: Object - Helipad - 2: Position - Position of the helipad","text":"Array in format:\n- 0: Position - Position of the selected location\n- 1: Object - Helipad\n- 2: Position - Position of the helipad"}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":["nearestObjects"],"notes":[],"categories":["Arma 3: Functions","Function Group: Map and Markers","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}