---
name: "BIS_fnc_nearestHelipad"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_nearestHelipad
revid: 348117
updated: 2023-11-08T11:32:17Z
---

# BIS_fnc_nearestHelipad

*Function · Map and Markers · Arma 3 v0.50 · introduced in Take On Helicopters v1.00*

## Description

Finds the nearest helipad of given type.

## Syntax

```sqf
[position, radius, random, types] call BIS_fnc_nearestHelipad
```

**Parameters:**

- `position`: [Array](../topics/Array.md) format [Position](../topics/Position.md) - (Optional, default [position](../commands/position.md) [vehicle](../commands/vehicle.md) [player](../commands/player.md)) center position
- `radius`: [Number](../topics/Number.md) - (Optional, default 999999) radius of the area to search in meters
- `random`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) if [true](../commands/true.md) a random helipad will be selected if multiple are found
- `types`: [Array](../topics/Array.md) - (Optional, default ["Heliport"]) location types to be searched for. See [nearestLocations](../commands/nearestLocations.md) for more information 

  > [!NOTE]
  > **Arma 3:** Default value won't work in Arma 3. Only types listed in CfgLocationTypes are supported

**Returns:** [Array](../topics/Array.md) in format:
- 0: [Position](../topics/Position.md) - Position of the selected location
- 1: [Object](../topics/Object.md) - Helipad
- 2: [Position](../topics/Position.md) - Position of the helipad

## See also

[nearestObjects](../commands/nearestObjects.md)

<sub>Source: [BI Community Wiki — BIS fnc nearestHelipad](https://community.bistudio.com/wiki/BIS_fnc_nearestHelipad) (revision 348117).</sub>
