WoW:API UnitHealthMax

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

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

local max_health = UnitHealthMax(unit);

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

Returns
max_health
max_health
the maximum health of the specified unit

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

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

Template:WoW API