---
name: "group"
type: command
status: ok
groups: ["Groups"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/group
revid: 377962
updated: 2026-01-18T09:47:05Z
---

# group

*Command · Groups · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

Returns the group a unit is assigned to.

## Syntax

```sqf
group object
```

**Parameters:**

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

**Returns:** [Group](../topics/Group.md) - for dead units, the returned group equals [grpNull](../commands/grpNull.md).

## Examples

### Example 1

```sqf
_playerGrp = group player;
```

## See also

[local](../commands/local.md) · [join](../commands/join.md) · [leader](../commands/leader.md) · [units](../commands/units.md) · [allGroups](../commands/allGroups.md) · [groups](../commands/groups.md) · groupID · [setGroupId](../commands/setGroupId.md) · [setGroupIdGlobal](../commands/setGroupIdGlobal.md)

## Community notes

**jafarin** — 2006-08-19

Few rules about group in OFP:R:
1. When last man in group die or is moved to other group, group will be destroyed, and it can't be used anymore.
1. First man joined to empty group will be group leader.

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