>wowhelm_
Loading ruleset status…
~/forever/addon-api/function/UnitHealthPercent

UnitHealthPercent

documented function · Unit
UnitHealthPercent(unit, usePredicted, curve?) : result

Returns percent of health remaining - can be scaled via a curve for display purposes

──ARGUMENTS
unit
UnitTokenPvPRestrictedForAddOns
usePredicted
bool, default true
curve
LuaCurveObjectBase, optional
──RETURNS
result
LuaCurveEvaluatedResult (If no curve is specified, a floating point percentage value. Else, the result of evaluating the curve with the percentage as the input.)
──DETAILS
Secret When Curve Secret
true
Secret Returns
true
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.