This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:setunitselectable [2022/07/03 15:17] – expand Grabz | 4rpl:commands:setunitselectable [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 13: | Line 13: | ||
Sets the selectable state of a unit. | Sets the selectable state of a unit. | ||
- | If the targeted unit is selected before making this call, it will remain selected until deselected, then will be unselectable. You may want to deselect the unit first with [[SetUnitSelected]]. Be mindful of the order of operations, if you make a unit unselectable first and then try to deselect it, the SetUnitSelected call will fail, because the unit isn't selectable. So deselect the unit first, then make it unselectable. | + | If the targeted unit is selected |
+ | |||
+ | Be mindful of the order of operations, if you make a unit unselectable | ||
===== Examples ===== | ===== Examples ===== |