---
name: "hcAllGroups"
type: command
status: ok
groups: ["High Command"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hcAllGroups
revid: 377156
updated: 2026-01-01T10:38:32Z
---

# hcAllGroups

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

## Description

Returns selected groups in high command.

## Syntax

```sqf
hcAllGroups unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
hcAllGroups player;
```

## See also

High Command · [hcGroupParams](../commands/hcGroupParams.md) · [hcLeader](../commands/hcLeader.md) · [hcRemoveAllGroups](../commands/hcRemoveAllGroups.md) · [hcRemoveGroup](../commands/hcRemoveGroup.md) · [hcSelected](../commands/hcSelected.md) · [hcSelectGroup](../commands/hcSelectGroup.md) · [hcSetGroup](../commands/hcSetGroup.md) · [hcShowBar](../commands/hcShowBar.md) · [hcShownBar](../commands/hcShownBar.md) · [onHCGroupSelectionChanged](../commands/onHCGroupSelectionChanged.md)

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