Returns a unit's current amount of health


See also Unit functions.

Signature:

health = UnitHealth("unit") or UnitHealth("name")

Arguments:

  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)

Returns:

  • health - The unit's current amount of health (hit points) (number)