This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cw4:4rpl_tools [2024/05/12 15:33] – [Next Utility goes here] Kalli | cw4:4rpl_tools [2024/05/13 11:42] – [Make Units Unselectable] Kalli | ||
---|---|---|---|
Line 2928: | Line 2928: | ||
===== Make Units Unselectable ===== | ===== Make Units Unselectable ===== | ||
- | You can make friendly/ | + | You can make friendly/ |
The $ variables are now set so that friendly (=human) units are set unselectable and undestroyable, | The $ variables are now set so that friendly (=human) units are set unselectable and undestroyable, | ||
Line 2938: | Line 2938: | ||
<hidden click here for source code> | <hidden click here for source code> | ||
- | <code 4rpl UnitsNotSelectable.4rpl> | + | <code 4rpl MakeUnitsUnselectable.4rpl> |
- | # UnitsNotSelectable | + | # MakeUnitsUnselectable |
# The script can be used from the console, or be added as a global script to a cpack. | # The script can be used from the console, or be added as a global script to a cpack. | ||
Line 2955: | Line 2955: | ||
:once | :once | ||
- | GetMapSize 2 div asfloat | + | GetMapSize 2 div -> |
< | < | ||
Line 2962: | Line 2962: | ||
0 -> | 0 -> | ||
else | else | ||
- | < | + | < |
endif | endif | ||