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




Introduced in

Version:3.5

Description

Description:

Returns a list of units which are under the command of the specified lead unit.

The returned list always contains the lead unit as well, either as the first element in the list, or, if there are no subordinates, as the only element.

Syntax

Syntax:leader call fn_vbs_allUnitsInCoC
Parameters:
  • leader: Object - Unit to check.
Return Value:Array of Object - Lead unit, plus any subordinates.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
_grp = player call fn_vbs_allUnitsInCoC

Additional Information

See also: group
Multiplayer: 
Problems: 

Notes