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
cw4:4rpl_tools [2024/05/12 15:35] – [Make Units Unselectable] Kallicw4:4rpl_tools [2024/05/13 11:42] (current) – [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 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/05/13 11:42 by Kalli