# Selected Subgroup Units
Grammar — Selected subgroup of units for player player
Flags —Native
|Function
Returns the selected units subgroup for the specified player.
# Arguments
int
— Player
Returns — unitgroup
native unitgroup UnitSubgroupSelected(int inPlayer);
# Related
Category: Selection / Unit Selection
- [F] —
int
— Subgroup Index — ( UnitSubgroupIndexSelected ) - [F] —
unitgroup
— Selected Subgroup Units — ( UnitSubgroupSelected ) - [F] —
void
— Select/Deselect Unit — ( UnitSelect ) - [F] —
void
— Select Next Subgroup — ( UnitSubgroupIndexNext ) - [F] —
void
— Select Previous Subgroup — ( UnitSubgroupIndexPrevious ) - [F] —
void
— Select/Deselect Unit Group — ( UnitGroupSelect ) - [F] —
void
— Clear Unit Selection — ( UnitClearSelection ) - [F] —
bool
— Unit Is Selected — ( UnitIsSelected ) - [F] —
bool
— Unit Type Is Selected — ( libNtve_gf_UnitTypeIsSelected ) - [F] —
unitgroup
— Selected Units — ( UnitGroupSelected ) - [F] —
void
— Unit Is Selected — ( TriggerAddEventUnitSelected ) - [F] —
void
— Store Unit Selection — ( libNtve_gf_StoreUnitSelection ) - [F] —
void
— Restore Unit Selection — ( libNtve_gf_RestoreUnitSelection ) - [F] —
void
— Flash Unit Selection — ( UnitFlashSelection )
# Examples
# mods/starcoop/starcoop.sc2mod
// L18375
UnitSubgroupSelected(lv_fenixPlayer)
// L25631
UnitSubgroupSelected(lv_p)