User Tools

Site Tools


4rpl:commands:setunitspecialtarget

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setunitspecialtarget [2021/02/14 23:08] – created virgilw4rpl:commands:setunitspecialtarget [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 7: Line 7:
  
 ===== Description ===== ===== Description =====
-Sets an int representing the current special target status of the unit. A value of 0 means the unit is not a target for things that target 'special' units. A value of 1 means that snipers will target the unit. A value of means that missile launchers will target the unitValues of 3 and 4 are for custom unit useValues of 5 and higher are not supported and will have no effect.+Sets an V4 representing the current special target status of the unit. The V4 tells which target types the unit is tagged as. A value of 0 or 1 will be in each field of the V4. A value of 1 in a field means the unit is targeted by that type of weapon. \\ 
 +targetVal.0 : Snipers will target \\ 
 +targetVal.1 : Missiles will target \\ 
 +targetVal.2 : Custom0 will target \\ 
 +targetVal.3 : Custom1 will target \\
  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-SetUnitSpecialTarget(self 3)+SetUnitSpecialTarget(self V4(1 1 0 0))
 </code> </code>
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/setunitspecialtarget.1613344083.txt.gz · Last modified: 2025/02/14 14:56 (external edit)