EnableSelect

Parameters
state boolean

If 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 boolean

If 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 SelectUnit and other functions to select the units for a player, even when state is set to false.

The player cannot manually deselect any units they have control over (after SelectUnit).

patch

1.18a

Source
common.j
return type
nothing
Source code
native EnableSelect                 takes boolean state, boolean ui returns nothing