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



Introduced in

Version:2.00

Description

Description:Selects a unit from the player's group (in the UI command bar - similar to pressing the function keys, to select subordinates).
Only works if player is group leader.

Syntax

Syntax:groupSelectUnit unit
Parameters:
  • unit: Object - Unit is selected.
Return Value:Nothing

Alternative Syntax

Syntax:member groupSelectUnit [unit, select]
Parameters:
  • member: Object - Member of the group, in which unit should be selected (does not have to be the group leader).
  • unit: Object - Unit to be selected / unselected
  • select: Boolean - If true, then unit is selected, if false it is unselected.
Return Value:Nothing

Examples

Examples:Reverses the current selection:
{
   player groupSelectUnit [_x, !(_x in (groupSelectedUnits player))];
}forEach (units group player)

Additional Information

See also: groupSelectedUnits, groupUnSelectUnit, groupListSelected, groupSelect
Multiplayer: 
Problems: 

Notes