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



Introduced in

Version:3.5

Description

Description:Returns all direct subordinate groups of the given group.

Syntax

Syntax:groups grp
Parameters:
  • grp: Group - Group to check.
Return Value:Array of Group - All directly subordinated groups (returns an empty array, if no subordinate groups exist).

Examples

Examples:
_subGrps = groups (group player)

For the example above, the following values would be returned:

  • CO: [1PL,CO HQ,2PL]
  • 1PL: [1PL HQ,1PL 1SQ,1PL 2SQ]
  • 1PL HQ: []
  • 1PL 1SQ: []
  • 1PL 2SQ: []
  • CO HQ: []
  • 2PL: [2PL HQ,2PL 1SQ,2PL 2SQ]
  • 2PL HQ: []
  • 2PL 1SQ: []
  • 2PL 2SQ: []

Additional Information

See also: grpAllGroups, grpAllUnits, allGroups, group
Multiplayer: 
Problems: 

Notes