GetIsDead
From NWN Lexicon
Jump to navigationJump to search
GetIsDead(object)
Determines if a creature is dead or dying.
int GetIsDead(
object oCreature
);
Parameters
oCreature
The creature to be investigated.
Description
Returns TRUE if oCreature is a dead NPC, dead PC or a dying PC, otherwise FALSE.
Remarks
A creature is considered dead if they have 0 or less hit points. PC's actually die at -10 hit points, but are considered dead when this is used.
If passed invalid object, the function will suprisingly returns TRUE.
Version
1.22
See Also
author: Tom Cassiotis, editor: Jasperre, additional contributor(s): Jasperre