NPC Health UI doesn't work

Hi, i am creating HealthBar over NPC’s head. But it doesn’t work properly. I made widget health bar, binded npcs health to it and anydamage event. But widget value doesn’t change, hovewer damage event works like a charm.



You’re attempting to cast player character to AI. This probably fails, add a print string on Cast Failed and see if it spams.


Is this from a tutorial of some kind? Or you’re trying to crack it yourself?

I tried it myself, do you have some ideas, please?

Plenty but this has been done so many times that I’m sure every angle is now covered. Have you tried:

https://www.youtube.com/results?search_query=ue4+progress+bar+enemy

1 Like

thanks, i just had to divide it to 100