FANDOM


Get the maximum health of a unit.

UnitMaxHealth("unit")

Parameter Edit

unit
String - the UnitId (e.g. "target", "party1", "raid1", etc..)

Returns Edit

health
Integer - maximum health of the specified unit. Returns 0 if the specified unit does not exist (eg. "target" given but there is no target).

Example Edit

Print your maximum health to the Say channel.

SendChatMessage("My health is " .. UnitMaxHealth("player"),"SAY")

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.