# Can't get my health bar to work, not sure if it's the code or the Blueprints

**URL:** <https://forums.unrealengine.com/t/cant-get-my-health-bar-to-work-not-sure-if-its-the-code-or-the-blueprints/244682>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 9, 2021, 7:08pm UTC](https://forums.unrealengine.com/t/cant-get-my-health-bar-to-work-not-sure-if-its-the-code-or-the-blueprints/244682 "2021-08-09T19:08:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![anonymous\_user\_9a7ed577](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9a7ed577](https://forums.unrealengine.com/u/anonymous_user_9a7ed577)\
**Post date:** [August 10, 2021, 4:11pm UTC](https://forums.unrealengine.com/t/cant-get-my-health-bar-to-work-not-sure-if-its-the-code-or-the-blueprints/244682/7 "2021-08-10T16:11:39Z")

</div>

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/cant-get-my-health-bar-to-work-not-sure-if-its-the-code-or-the-blueprints/244682)._
