WoW:API UnitHealthMax: Difference between revisions

m
Move page script moved page API UnitHealthMax to WoW:API UnitHealthMax without leaving a redirect
(Factual correction)
m (Move page script moved page API UnitHealthMax to WoW:API UnitHealthMax without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
Print the maximum health of ''player'' and ''target'' units to the chat window:
Print the maximum health of ''player'' and ''target'' units to the chat window:
  ChatFrame1:AddMessage('Player max health: ' .. UnitHealthMax("player") .. " HP");
  ChatFrame1:AddMessage('Player max health: ' .. UnitHealthMax("player") .. " HP");
  ChatFrame1:AddMessage('Target max health: ' .. UnitHealthMax("target").. "%");
  ChatFrame1:AddMessage('Target max health: ' .. UnitHealthMax("target") .. " HP");
Anonymous user