WoW:API UnitHealth: Difference between revisions

m
Just edited a small part in the example
No edit summary
m (Just edited a small part in the example)
Line 29: Line 29:
  local health2 = UnitHealth("target");
  local health2 = UnitHealth("target");
  ChatFrame1:AddMessage('player health: ' .. health);
  ChatFrame1:AddMessage('player health: ' .. health);
  ChatFrame1:AddMessage('target health: ' .. health .. "%");
  ChatFrame1:AddMessage('target health2: ' .. health .. "%");


;''Result''
;''Result''
Anonymous user