Index

:!: Available in version 1.3 and later.

:_Selected

Description

“:_Selected” is invoked whenever a custom unit is selected or deselected. There is an implicit variable named “_DATA” that is available for use when the callback is made. For this callback, _DATA a bool (0 or 1) indicating if the unit was selected (1) or deselected (0). Note that this callback happens even when the game is paused.

Examples

:_Selected
   <-_DATA ->isSelected
   printallsp(<-isSelected)

Index