UpdHpb()
if(src.client)//
hpbar.icon_state="[min(max(round(Hp.val/Hp.max * x) * 10,0),100)]"
Problem description:
I can't seem to get it to work smoothly. This is the original, un modified code I was using. I have 50 states to my health bar, but it still seems to jump in much larger,less smooth increments.
Ideally I'd like the image to increment in 2% states.
should add a check to make sure icon state is still 100 if your hp goes above maximum for whatever reason