<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] ===== SetUnitSelectableOverride ===== ^ Arguments ^ Result ^ Notation ^ |Unit UID, bool| |'' i1 b1 - ''| === Description === Sets whether or not the unit can be selected by the player. ===Examples=== #Gets all units around core and freezes these CurrentCoords 18 GetUnitsInRange 0 do ->unit <-unit FALSE SetUnitSelectableOverride loop :awake #before anything else is done, freeze all units under this one, then destroy oneself CurrentCoords 0 TRUE GetAllUnitsInRange 0 do ->unit <-unit FALSE SetUnitSelectableOverride loop Self 0 Destroy