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