WoW:API UnitHealthMax
Jump to navigation
Jump to search
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.