Widget Component not updating

Hi, im trying to update the health bar of a blueprint (who has a widget on it) but is not working, this is what i have so far:

This is when the actor is hitted, sets the visibility of the widget, and casts to the HUD, so it can set the health counter on that widget, and then: this is what i have on the widget itself:

134638-question2.jpg

So, for me, that means that on every tick should update the percent bar, but is not working. (Ofc i updated the health variable every time it gets hitted)

And, for example, the max health possible is 200, if i hitted, it can have 170, for example, so: 170/200 = 0’85 what it means that the health bar should be at the 85%

Any help?

Hey there!

I’m pretty sure you should be using the engine’s built in “Event Any damage” node, to be receiving damage and calculating health correctly on your Meteor. Likewise Applying damage to be set up on whatever is damaging it with the node “Apply any damage”.

Here is an example of how my character receive’s damage:

And an example of Applying the damage From a Projectile:

Also regarding the widget, you can directly access the progress bar after casting to it, as you have in your meteorite bp. Instead of setting the variable inside the widgetbp, just set the progress bars precent directly from the cast using you health float value.
Example:

Hope this helps!

Best regards, Samuelb