GetIsDead

From NWN Lexicon



Contents

[edit] GetIsDead(object)

Determines if a creature is dead or dying.

int GetIsDead(
    object oCreature
);

[edit] Parameters

oCreature

The creature to be investigated.


[edit] Description

Returns TRUE if oCreature is a dead NPC, dead PC or a dying PC, otherwise FALSE.



[edit] 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 returs TRUE.

[edit] Version

1.22

[edit] See Also



 author: Tom Cassiotis, editor: Jasperre, additional contributor(s): Jasperre
 

Personal tools
Categories