UMG cant get hud to update with floats greater than 1

have followed the UMG tutorial and generated a hud. When I press the button assigned to simulate health loss the bar does not update until it is empty. I set up text blocks to show the health as text. My health counts down correctly yet the bar does not empty until the health value reaches 0. I was wondering what I need to do to have the progress bar update correctly and show a decrease correctly.
This only happens when the float is something > 1

This is because the bar uses a float representation to indicate 0 to 100 percent (i.e. 0.0 to 1.0) and not an integer. Making your float higher then 1.0 means it is higher than 100%.

Displaying Ammo, Health and Energy

Ahhh that makes sense alright thanks bro :smiley:

Actually is there a way I can get around this or will I just have to settle with using integers or something?

You could create your own custom progress bar as you access to the source code. But the default works with floats.

You could get creative with some images or HUD elements … or you can just use maths to change values and very other things to make it work for you.

Alright thanks for the help.