# Health bar still not working

**URL:** <https://forums.unrealengine.com/t/health-bar-still-not-working/487263>\
**Category:** Community & Industry Discussion\
**Tags:** health, health-bar, unreal-engine, question\
**Created:** [August 10, 2021, 3:20am UTC](https://forums.unrealengine.com/t/health-bar-still-not-working/487263 "2021-08-10T03:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 10, 2021, 4:31pm UTC](https://forums.unrealengine.com/t/health-bar-still-not-working/487263/7 "2021-08-10T16:31:43Z")

</div>

> I’m not sure if the cast fails or not

`Print String` off the `Cast Failed` pin. This (very inefficient) bind executes every frame so you’ll see the Print String spam the log.

You’d generally go for Event Driven approach with something like this:

Player Lost Health → Update Widget

Unless the health constantly changes every frame, of course.

* * *

> the magic bar works just fine with the  
> same set up.

If you have an identical setup already working for another widget, this should be a matter of comparing the two, no?

* * *

Also, gonna link the two:

> [@Can't get my health bar to work, not sure if it's the code or the Blueprints](https://forums.unrealengine.com/t/cant-get-my-health-bar-to-work-not-sure-if-its-the-code-or-the-blueprints/244682/7):
>
> yes, it’s still bound to the percent variable. How would I check to see if the cast is failing?

---

_[View the full topic](https://forums.unrealengine.com/t/health-bar-still-not-working/487263)._
