WoW:API UnitHealth

From AddOn Studio
Revision as of 02:38, 22 November 2004 by WoWWiki>Danboo
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
UnitHealth -Documentation by danboo-

Returns the current health, in points, of the specified unit.

local health = UnitHealth(unit);

Arguments
(String unit)
arg1
the unit's health to query

Returns
health
health
the current health of the specified unit

Example
local health = UnitHealth("player");
ChatFrame1:AddMessage('player health: ' .. health);
Result
Prints the player's health to the chat frame as 'player health: 90'.

Description
Returns the current health, in points, of the specified unit.

Template:WoW API