WoW:API UnitHealth: Difference between revisions

101 bytes removed ,  13 January 2009
Factual correction - 3.0 changed it to always return exact health.
(added info about 0 result for non existing target, corrected the example)
(Factual correction - 3.0 changed it to always return exact health.)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
Returns the current health of the specified unit. Returns the exact hitpoints for friendly players and pets in your raid/party, percentages otherwise.
Returns the current health of the specified unit.
  local health = UnitHealth(unit);
  local health = UnitHealth(unit);