---
name: "BIS_fnc_sceneGetParticipants"
type: function
status: ok
groups: ["Scenes"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_sceneGetParticipants
revid: 328385
updated: 2022-07-13T16:00:48Z
---

# BIS_fnc_sceneGetParticipants

*Function · Scenes · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

gets members of unit's group who are in unit's range.

## Syntax

```sqf
[unit, maxDistance] call BIS_fnc_sceneGetParticipants
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - if [nil](../commands/nil.md) is passed, [player](../commands/player.md) is used - [nil](../commands/nil.md) must then **not** be used on a dedicated server
- `maxDistance`: [Number](../topics/Number.md) - if [nil](../commands/nil.md) is passed, 30 is used.

**Returns:** [Array](../topics/Array.md) of units in *unit*'s group within *maxDistance* from *unit*

## Examples

### Example 1

```sqf
[player, 20] call BIS_fnc_sceneGetParticipants;
```

<sub>Source: [BI Community Wiki — BIS fnc sceneGetParticipants](https://community.bistudio.com/wiki/BIS_fnc_sceneGetParticipants) (revision 328385).</sub>
