How to change the Health UI according to how much HP the user has?

I would calculate health (state) in the player BP and call the above script in the widget. If the state calculation is simple and nothing else needs it, you could do the entire thing in the widget.


Considering what I posted previously, the script in the player could like so:

You will, ofc, need extra bits for clamps / max health and so on but this could work just fine.