User Tools

Site Tools


4rpl:commands:setunitselectable

This is an old revision of the document!


Index

SetUnitSelectable

SetUnitSelectable(<-unit <-selectable)

Description

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.

Examples

SetUnitSelected(self false)
SetUnitSelectable(self false)

Index

4rpl/commands/setunitselectable.1656861470.txt.gz · Last modified: 2025/02/14 14:56 (external edit)