# Selected Subgroup Units

Grammar — Selected subgroup of units for player player
FlagsNative | Function

Returns the selected units subgroup for the specified player.

# Arguments

  • int — Player

Returns — unitgroup

native unitgroup UnitSubgroupSelected(int inPlayer);

Category: Selection / Unit Selection

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L18375
UnitSubgroupSelected(lv_fenixPlayer)
// L25631
UnitSubgroupSelected(lv_p)