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:20] – Grabz | 4rpl:commands:setunitselectable [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 15: | Line 15: | ||
If the targeted unit is selected by the player before making this call, it will remain selected until the player deselects it, then will be unselectable by the player. You may want to deselect the unit first with [[SetUnitSelected]] before calling SetUnitSelectable. | If the targeted unit is selected by the player before making this call, it will remain selected until the player deselects it, then will be unselectable by the player. You may want to deselect the unit first with [[SetUnitSelected]] before calling SetUnitSelectable. | ||
- | e mindful of the order of operations, if you make a unit unselectable with SetUnitSelectable first and then try to deselect it with SetUnitSelected, | + | Be mindful of the order of operations, if you make a unit unselectable with SetUnitSelectable first and then try to deselect it with SetUnitSelected, |
===== Examples ===== | ===== Examples ===== |