Arma 3 Scripting

group

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · 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.