GetCurrentHitPoints

From NWN Lexicon



Contents

[edit] GetCurrentHitPoints(object)

Determines the number of hit points someone currently has.

int GetCurrentHitPoints(
    object oObject = OBJECT_SELF
);

[edit] Parameters

oObject

The object whose hitpoints we are to retrieve. (Default: OBJECT_SELF)


[edit] Description

Returns the number of hitpoints oObject has and 0 if oObject is invalid.



[edit] Remarks

This can be called upon any object with hit points - Doors, Placeables and so on therefore have values for this.

It can also be negative, if dying or dead.


[edit] Version

1.22

[edit] See Also

functions: 

GetPercentageHPLoss



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

Personal tools
Categories