BIS_fnc_nearestHelipad
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · Markdown · JSON · original wiki page
Description
Finds the nearest helipad of given type.
Syntax
[position, radius, random, types] call BIS_fnc_nearestHelipad
Parameters:
-
position: Array format Position - (Optional, default position vehicle player) center position -
radius: Number - (Optional, default 999999) radius of the area to search in meters -
random: Boolean - (Optional, default false) if true a random helipad will be selected if multiple are found -
types: Array - (Optional, default ["Heliport"]) location types to be searched for. See nearestLocations for more informationNote
Arma 3: Default value won't work in Arma 3. Only types listed in CfgLocationTypes are supported
Returns: Array in format:
- 0: Position - Position of the selected location
- 1: Object - Helipad
- 2: Position - Position of the helipad