Lua SetHealthPct

From ArcEmu-Wiki
Jump to: navigation, search

Desscription

Sets the units Health to a given percentage.

Usage

function SetHealth (pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:SetHealthPct(51)
end
end
Personal tools