# Healthbar actor widget, access specific actor on shoot

**URL:** <https://forums.unrealengine.com/t/healthbar-actor-widget-access-specific-actor-on-shoot/1252321>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 6, 2023, 7:33am UTC](https://forums.unrealengine.com/t/healthbar-actor-widget-access-specific-actor-on-shoot/1252321 "2023-08-06T07:33:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![d4brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d4brain/32/727542_2.png) [@d4brain](https://forums.unrealengine.com/u/d4brain)\
**Post date:** [August 6, 2023, 7:33am UTC](https://forums.unrealengine.com/t/healthbar-actor-widget-access-specific-actor-on-shoot/1252321/1 "2023-08-06T07:33:24Z")

</div>

Hey there,

hope you all doing fine and enjoying the weekend.  
I have an problem to access the specific actor widget for the healthbar of the Ai-Actor.

The healthbar is working fine for each Ai. But only get refreshed if i shoot a character.  
Each Ai Character has an health variable. This variable i check with the one actor widget with a line trace. Each Ai actor has the one actor widget.  
But I will access each health variable from each Ai Charakter with the one actor widget. At the moment the actor widget only redraw with the specific Ai char. health variable.

What can I do?

# UPDATE

@Everynone has the solution. Great work.

> [@Widget Healthbar binding to actor](https://forums.unrealengine.com/t/widget-healthbar-binding-to-actor/501986/2):
>
> Bound functions execute every frame, this variable would be polled every frame. Not a biggie if it’s just a bunch of entities, but if everyone is doing it all the time, it may become a performance factor; besides, not a good practice to start with - why waste cycles. Blueprints are sluggish enough. Consider adopting an Event Driven approach instead, whenever you can. Regarding why what you tired does not work: the New Health variable is not updated when you take damage. It’s updated only on…

Here is the example video of the actor widget problem.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/7/12760c9281d46616bf6218dcbe4332de5cb097c6.jpeg "Ue5 - Acess to specific Actor Widget") ](https://www.youtube.com/watch?v=BXLO1D1h5LI)

Greetings

---

<div class="post-metadata">

**Author:** ![d4brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d4brain/32/727542_2.png) [@d4brain](https://forums.unrealengine.com/u/d4brain)\
**Post date:** [August 6, 2023, 9:41am UTC](https://forums.unrealengine.com/t/healthbar-actor-widget-access-specific-actor-on-shoot/1252321/2 "2023-08-06T09:41:47Z")

</div>

The hint from @Everynone works like a charm.  
Thank you.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/e/22eeb9aec6bd33b1ccb0a77bfb74baa7adfe8cc5.jpeg "Ue5 Actor widget access - Update") ](https://www.youtube.com/watch?v=ScqvpQEOtTQ)
