---
name: "hcSelectGroup"
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/hcSelectGroup
revid: 347546
updated: 2023-09-28T09:23:04Z
---

# hcSelectGroup

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

## Description

Select given group in high command bar.

## Syntax

```sqf
unit hcSelectGroup array
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - HC Owner
- `array`: [Array](../topics/Array.md) of [Group](../topics/Group.md)s

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player hcSelectGroup [group_1,group_2];
```

## See also

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

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