EnableSelect
- Parameters
state booleanIf
true, you can de/select units (default).If
false, deselects any currently selected units and disables your ability to select any unit. Mouse clicks and group binds ("CTRL+1" then press "1") don't work any more. Drag select will not allow you to select too.ui booleanIf
true, show the green selection indicator around selected units (default).If
false, no visual indicator is shown.- comment
Controls whether you can de/select any units and the green visual indicator.
- note
You can use
SelectUnitand other functions to select the units for a player, even whenstateis set tofalse.The player cannot manually deselect any units they have control over (after
SelectUnit).- patch
1.18a
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native EnableSelect takes boolean state, boolean ui returns nothing