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



Introduced in

Version:3.5

Description

Description:Returns the number of hierarchy levels for the given group.

Syntax

Syntax:getCommandLevel grp
Parameters:
  • grp: Group - Group to check.
Return Value:Number - Levels beneath the specified group.

Examples

Examples:
_lvl = getCommandLevel (group player)

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

  • CO: 2
  • 1PL: 1
  • 1PL HQ: 0
  • 1PL 1SQ: 0
  • 1PL 2SQ: 0
  • CO HQ: 0
  • 2PL: 1
  • 2PL HQ: 0
  • 2PL 1SQ: 0
  • 2PL 2SQ: 0

Additional Information

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

Notes