# Enable/Disable Selection Type

Grammardisable|Enable/Disable selectionType for playerGroup
FlagsNative | Action

If a Selection Type is disabled the player may not use that Selection Type to change their selected unit(s).

# Arguments

Returns — void

native void UISetSelectionTypeEnabled(
	playergroup inPlayers,
	int inSelectionType,
	bool inEnabled,
);

Category: UI / Game UI

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L2984
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3033
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3136
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3181
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3804
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L3923
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L4345
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L5140
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2984
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3033
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3136
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3181
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3804
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L3923
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L4345
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L5140
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L6656
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L6667
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)

# mods/frontiers.sc2mod

Lib6CB3363F.galaxy

// L346
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2157
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L2178
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L424
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)

# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod

LibAtDe.galaxy

// L424
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L5047
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_player), c_localSelectionTypeWorldPanelHero, false)
// L5051
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_player), c_localSelectionTypeWorldPanelHero, true)
// L8398
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_chenPlayer), c_localSelectionTypeWorldPanelHero, false)
// L8411
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_chenPlayer), c_localSelectionTypeWorldPanelHero, true)
// L13021
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_lVPlayer), c_localSelectionTypeUnknown, true)
// L18039
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_ownerOfCreatedUnit), c_localSelectionTypeWorldPanelHero, false)
// L18051
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_ownerOfCreatedUnit), c_localSelectionTypeWorldPanelHero, true)
// L19690
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_rexxarPlayer), c_localSelectionTypeWorldPanelHero, false)
// L19745
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_rexxarPlayer), c_localSelectionTypeWorldPanelHero, true)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L1401
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L1408
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)

# mods/heroesdata.stormmod

UILib.galaxy

// L8759
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L8760
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeWorldPanelHero, true)

# mods/heromods/medivh.stormmod

LibHMDV.galaxy

// L570
UISetSelectionTypeEnabled(PlayerGroupSingle(UnitGetOwner(lv_portalCaster)), c_localSelectionTypeWorldPanelHero, false)
// L574
UISetSelectionTypeEnabled(PlayerGroupSingle(UnitGetOwner(lv_portalCaster)), c_localSelectionTypeWorldPanelHero, true)

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L227
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true)
// L1882
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5775
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L5786
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L2882
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2882
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)