EnableDragSelect

Parameters
state boolean

If true, default game behavior (drag select is enabled).

If false, drag select is disabled. Only the first unit in the rectangle will be selected (closest to the point where you first clicked the mouse).

Note that you can still select multiple units with Shift+Click even if drag select is disabled.

ui boolean

If true, render the visual indicator that shows the green rectangular selection area (default). Units, that are not yet selected but are inside the rectangle, have a semi-transparent green circle around them.

If false, the green rectangle is not rendered. This has no effect on state, Drag Select can still work without the visual indicator.

comment

Sets the functionality of the rectangular unit multi-select.

"Drag Select" allows you to hold left-click to select multiple units by expanding the green selection rectangle over the units.

patch

1.18a

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