Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Returns the group a unit is assigned to.

Syntax

Syntax:group unit
Parameters:
Return Value:Group - Group the queried unit belongs to. For dead units grpNull is returned.

Alternative Syntax

Syntax:group group (V3.5+)
Parameters:
  • group: Group - Structured Group whose superior group should be found.
Return Value:Group - Superior Structured Group (or grpNull if none exists).

Examples

Examples:_playerGrp = group player

Additional Information

See also: join, leader, units, fn vbs allUnitsInCoC
Multiplayer:
Problems:In MP the command is not initialised in functions called by initline or init eventhandlers.

Notes







Posted on August 19, 2006 - 12:00
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) 1st man joined to empty group will be group leader.