# Widget BP: Multiple Health bars

**URL:** <https://forums.unrealengine.com/t/widget-bp-multiple-health-bars/136933>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 22, 2020, 8:08pm UTC](https://forums.unrealengine.com/t/widget-bp-multiple-health-bars/136933 "2020-01-22T20:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![galledark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@galledark](https://forums.unrealengine.com/u/galledark)\
**Post date:** [January 22, 2020, 8:08pm UTC](https://forums.unrealengine.com/t/widget-bp-multiple-health-bars/136933/1 "2020-01-22T20:08:29Z")

</div>

Hello everyone.  
I have 4 characters in my level, each of them are sharing the same blueprint.  
They have a Healthbar above their head wich represents the variable “Health”.

When i shoot’em they have their own Health (100 Health Points) (i shoot the first then the second one etc… everything seems normal)

But the healthbar seems acting like it is common…  
When i shoot the character 1 the healthbar of the others is following the same result…  
It’s wierd because, the value of the variable “Health” for the others is still at their maximum value…

Here is a link to the video:

Here is the Blueprint:

 ![Get-all-actors.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/5/756873394b0b6eb0722c527460304c75a46120ef.png)  
If anyone knows a solution to make EACH character have his OWN healthbar… please let me know.  
Thanks \<3

---

<div class="post-metadata">

**Author:** ![Synia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/synia/32/88715_2.png) [@Synia](https://forums.unrealengine.com/u/Synia)\
**Post date:** [January 22, 2020, 10:33pm UTC](https://forums.unrealengine.com/t/widget-bp-multiple-health-bars/136933/2 "2020-01-22T22:33:43Z")

</div>

Hey,  
the loop will always stop execution at the first index, because it has a return node.  
Give the health widget a reference to the enemy that has created the widget and than use this reference to get the health value.

I would also not use GetAllActorsOfClass function as this can lead to performance problems (every enemy has a widget and every widget goes through all enemies, the operation count in this case is (number of enemies)[SUP]2[/SUP] per frame).
