Danboo12465@legacy41533507 (talk | contribs) No edit summary |
WoWWiki-Mds@legacy41585459 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<center>'''UnitHealth''' ''-Documentation by [[User:Danboo|danboo]]-''</center> |
<center>'''UnitHealth''' ''-Documentation by [[User:Danboo|danboo]]-''</center> |
||
− | Returns the current health |
+ | Returns the current health of the specified unit, in percentage, for: |
+ | |||
+ | *target |
||
+ | *mouseover |
||
+ | |||
+ | Otherwise in points. |
||
local health = UnitHealth(unit); |
local health = UnitHealth(unit); |
||
Line 29: | Line 34: | ||
;''Description'' |
;''Description'' |
||
− | : Returns the current health |
+ | : Returns the current health of the specified unit, in percentage, for: |
+ | |||
+ | *target |
||
+ | *mouseover |
||
+ | |||
+ | Otherwise in points. |
||
---- |
---- |
Revision as of 17:50, 7 December 2004
Returns the current health of the specified unit, in percentage, for:
- target
- mouseover
Otherwise in points.
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 of the specified unit, in percentage, for:
- target
- mouseover
Otherwise in points.
Template:WoW API