GetUnitLifePercent

Parameters
whichUnitunit
comment
patch

1.07

Source
Blizzard.j (suggest an edit or discuss on Github)
return type
real
Source code
function GetUnitLifePercent takes unit whichUnit returns real
    return GetUnitStatePercent(whichUnit, UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
endfunction