Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local unit = "player"
- local current, max = UnitHealth(unit), UnitHealthMax(unit)
- local health = string.format("%.2f", current/1000) .. "k"
- local healthP = ("%i"):format(current / max * 100)
- return health .. " - " .. healthP .."%"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement