SetImmortal(object, int)

Sets a creature as immortal.

void SetImmortal(
    object oCreature,
    int bImmortal
);

Parameters

oCreature

Creature to affect the mortality of.

bImmortal

Sets the creature to immortal (TRUE) or mortal (FALSE).


Description

Marks a creature as immortal; that is immune to death (cannot die but still takes damage).



Known Bugs

Confirmed as of patch 1.30, SetImmortal is bugged in as much as it apparantly only protects against death resulting from damage. Applying EffectDeath to an immortal creature still kills it, and it can die as a result of ability damage as well (eg poison that reduces constitution so that, eventually, the creature has less than 0 HP).

Also, it appears that only creatures, not placeables can be set as immortal. This may not be a bug, though, but could be something intended.


Version

1.30

See Also

functions: SetPlotFlag
categories: Miscellaneous Functions


 author: Charles Feduke, editor: Lilac Soul
 Send comments on this topic.