# Segmented Health Bar

**URL:** <https://forums.unrealengine.com/t/segmented-health-bar/1793081>\
**Category:** UI\
**Tags:** unreal-engine, question\
**Created:** [April 7, 2024, 10:30pm UTC](https://forums.unrealengine.com/t/segmented-health-bar/1793081 "2024-04-07T22:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZincGoBRRRR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZincGoBRRRR](https://forums.unrealengine.com/u/ZincGoBRRRR)\
**Post date:** [April 7, 2024, 10:30pm UTC](https://forums.unrealengine.com/t/segmented-health-bar/1793081/1 "2024-04-07T22:30:35Z")

</div>

Hello everyone, i am working on a fps in unreal engine and I was wondering how can I make a segmented health bar like overwatch’s in unreal engine? I want it to be dynamic and the segments represent a certain amount of health, and the amount of segments to be based off of the max health, I got to a point where i have a horizontal box that adds a progress bar (a segment) for every 25 hp in the max hp, and its great and all but my issue is making it work like a progress bar, as when the player’s health depletes (say to 180/200) that means that the last segment’s percentage won’t be full, how do I do that?

---

<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:** [April 8, 2024, 6:01am UTC](https://forums.unrealengine.com/t/segmented-health-bar/1793081/2 "2024-04-08T06:01:09Z")

</div>

You could try to leverage this:

> [@Mimicking Overwatch health bar system](https://forums.unrealengine.com/t/mimicking-overwatch-health-bar-system/409084/10):
>
> I know for a fact that the PreConstruct event is buggy and does not always update widgets correctly - you can force it by clicking Auto-Fill buttons of the specific elements. Anyway, I never tested it during run-time. Having done that now, I can see it does not update correctly, indeed. I made adjustments to the blueprint: Handled the 0 division, ensured that the fill struct is pushed in correctly into the slate child slot, added a couple of events so the functionality …
