---
name: "BIS_fnc_randomPosTrigger"
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_randomPosTrigger
revid: 376281
updated: 2025-09-24T15:32:14Z
---

# BIS_fnc_randomPosTrigger

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

## Description

Selects random position within trigger, marker, location area or area defined by array

## Syntax

```sqf
param call BIS_fnc_randomPosTrigger
```

**Parameters:**

- `param`: can be one of:
  - [Object](../topics/Object.md) - trigger
  - [String](../topics/String.md) - marker
  - [Location](../topics/Location.md) - location
  - [Array](../topics/Array.md) - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]

  > [!NOTE]
  > Be aware that the `height` value is ignored.

**Returns:** [Array](../topics/Array.md) - random position in format [x,y,z]

## Examples

### Example 1

```sqf
marker1 call BIS_fnc_randomPosTrigger;
```

## See also

[BIS_fnc_findSafePos](../functions/BIS_fnc_findSafePos.md)

<sub>Source: [BI Community Wiki — BIS fnc randomPosTrigger](https://community.bistudio.com/wiki/BIS_fnc_randomPosTrigger) (revision 376281).</sub>
