Arma 3 Scripting

Command in Groups

group

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the group a unit is assigned to.

Syntax

group object

Parameters:

Returns: Group - for dead units, the returned group equals grpNull.

Examples

Example 1

_playerGrp = group player;

See also

local · join · leader · units · allGroups · groups · groupID · setGroupId · setGroupIdGlobal

Community notes

jafarin

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.
  2. First man joined to empty group will be group leader.