SetUnitInvulnerable

Parameters
whichUnit unit
flag boolean
comment

Renders a unit invulnerable/lifts that specific invulnerability.

note

The native seems to employ the 'Avul' ability, which is defined in the default AbilityData.slk. If there is no 'Avul' defined, this will crash the game.

patch

1.00

Source
common.j
return type
nothing
Source code
native          SetUnitInvulnerable takes unit whichUnit, boolean flag returns nothing