User Tools

Site Tools


4rpl:commands:setunitspecialtarget

Index

:!: Available in version 1.3 and later.

SetUnitSpecialTarget

SetUnitSpecialTarget(<-unit <-specialTargetVal)

Description

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

SetUnitSpecialTarget(self V4(1 1 0 0))

Index

4rpl/commands/setunitspecialtarget.txt · Last modified: 2021/02/15 18:12 by virgilw