• Controls whether you can de/select any units and the green visual indicator.

    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.

    Returns void

    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).

Generated using TypeDoc