User Tools

Site Tools


cw4:4rpl_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cw4:4rpl_tools [2024/05/12 15:33] – [Next Utility goes here] Kallicw4: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/enemy/all units (un)selectable and/or un(destroyable) with this script.+You can make friendly/enemy/all units (un)selectable and/or (un)destroyable with this script.
  
 The $ variables are now set so that friendly (=human) units are set unselectable and undestroyable, so that it's ready to use in a pac map. The variables are either 0 or 1. The $ variables are now set so that friendly (=human) units are set unselectable and undestroyable, so that it's ready to use in a pac map. The variables are either 0 or 1.
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 ->midPointZ 2 div asfloat ->midPointX + GetMapSize 2 div ->midPointZ 2 div ->midPointX 
   
  <-midPointX 0 <-midpointZ v3 ->pos  <-midPointX 0 <-midpointZ v3 ->pos
Line 2962: Line 2962:
  0 ->enemyState  0 ->enemyState
  else  else
- <-applyToFriendlyUnits if 2 else endif ->enemyState+ <-applyToFriendlyUnits if 2 else <-applyToEnemyUnits endif ->enemyState
  endif  endif
   
cw4/4rpl_tools.txt · Last modified: 2024/09/10 17:41 by Vertu