NpcHealth

A value shape that methods take or return.

Group
player
Methods
None
Fields
4

Getting one

bank:nearestBanker():health()

Fields

FieldTypeDescription
rationumberThe bar's fill (getHealthRatio()), 0 to scale.
scalenumberThe bar's width (getHealthScale()).
maxHpnumber?The NPC type's hitpoints from the NPC info table; nil when the table does not know the NPC or has not loaded yet.
estimatedHpnumber?The hitpoints the bar stands for, an estimate; nil without maxHp.

Returned by

MethodReturnsDescription
NPC.healthNpcHealth?The NPC's health bar (getHealthRatio() of getHealthScale()), with the NPC type's hitpoints from an NPC info table and the hitpoints the…