true, you can de/select units (default).
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.
true, show the green selection indicator around selected units (default).
false, no visual indicator is shown.
Controls whether you can de/select any units and the green visual indicator.
You can use
SelectUnitand other functions to select the units for a player, even when
stateis set to
The player cannot manually deselect any units they have control over (after
- return type
- Source code
native EnableSelect takes boolean state, boolean ui returns nothing