View Single Post
08-20-10, 02:38 AM   #11
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
did you declare your Postupdate function before the declaration of your hb ?

Code:
lib.PostUpdateHealth = function(Health, min, max)
    local d = floor(min/max*100)
    Health.Filling:SetHeight((min / max) * Health:GetWidth())
    Health.Filling:SetTexCoord(0,1,  math.abs(min / max - 1),1)
end
  Reply With Quote