---
name: "setGroupIcon"
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/setGroupIcon
revid: 376586
updated: 2025-10-29T23:11:37Z
---

# setGroupIcon

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

## Description

Sets group icon properties. Since Arma 3 v2.22 the offset can be set separately for 2d and 3d.

## Syntax

```sqf
group setGroupIcon [id, icon, offset]
```

**Parameters:**

- `group`: [Group](../topics/Group.md)
- `id`: [Number](../topics/Number.md) - the icon ID returned by [addGroupIcon](../commands/addGroupIcon.md)
- `icon`: [String](../topics/String.md) - class name of desired icon from CfgGroupIcons
- `offset`: [Array](../topics/Array.md) - (Optional, default [0,0]) X and Y offsets of the icon in form [offsetX, offsetY, (offsetX3d), (offsetY3d)]

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

## Examples

### Example 1

```sqf
_target setGroupIcon [_icon, "hc_selectedEnemy"];
_target setGroupIcon [_icon, "flag"];

_group setGroupIcon [_icon, _iconsClass, _offset];
```

## See also

[addGroupIcon](../commands/addGroupIcon.md) · [clearGroupIcons](../commands/clearGroupIcons.md) · [getGroupIcon](../commands/getGroupIcon.md) · [getGroupIcons](../commands/getGroupIcons.md) · [getGroupIconParams](../commands/getGroupIconParams.md) · [groupIconSelectable](../commands/groupIconSelectable.md) · [groupIconsVisible](../commands/groupIconsVisible.md) · [onGroupIconClick](../commands/onGroupIconClick.md) · [removeGroupIcon](../commands/removeGroupIcon.md) · [setGroupIconParams](../commands/setGroupIconParams.md) · [setGroupIconsSelectable](../commands/setGroupIconsSelectable.md) · [setGroupIconsVisible](../commands/setGroupIconsVisible.md)

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