---
name: "groupSelectedUnits"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/groupSelectedUnits
revid: 377896
updated: 2026-01-05T17:44:14Z
---

# groupSelectedUnits

*Command · Interaction · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Returns selected units in source group for normal commanding mode (individual units). For the High Command equivalent, see [hcSelected](../commands/hcSelected.md).

## Syntax

```sqf
groupSelectedUnits unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s

## Examples

### Example 1

```sqf
_selectedUnits = groupSelectedUnits player;
```

## See also

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

<sub>Source: [BI Community Wiki — groupSelectedUnits](https://community.bistudio.com/wiki/groupSelectedUnits) (revision 377896).</sub>
