4rpl:commands:func_selected
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
4rpl:commands:func_selected [2021/02/07 21:01] – created virgilw | 4rpl:commands:func_selected [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
| |
===== Description ===== | ===== 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 or deselected. Note that this callback happens even when the game is paused. | ":_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 ===== | ===== Examples ===== |
4rpl/commands/func_selected.1612731680.txt.gz · Last modified: 2025/02/14 14:56 (external edit)