User Tools

Site Tools


crpl:docs:setunitselectableoverride

<- CRPL reference <- 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
crpl/docs/setunitselectableoverride.txt · Last modified: 2021/02/05 11:44 by Karsten75