This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:setunitselectableoverride [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:setunitselectableoverride [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== SetUnitSelectableOverride | ===== SetUnitSelectableOverride | ||
| ^ Arguments ^ Result ^ Notation ^ | ^ Arguments ^ Result ^ Notation ^ | ||
| - | |Unit UID, bool| |%% i1 b1 - %%| | + | |Unit UID, bool| |'' |
| === Description === | === Description === | ||
| Line 11: | Line 11: | ||
| ===Examples=== | ===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 | ||
| + | </ | ||