As you can see both of these enemies have a health bar that displays a Health Variable.
But I haven’t damaged the one in the distance but they still display the same health variable.
Despite it displaying both of them having the same health variable the value itself is different its just the widget displaying it isn’t displaying each actors separate health value.
Get All Actors Of Class returns same set of actors and you always getting one with index 0, which is the same actor. Insted of using Get All Actors Of Class, send health to the heal bar components directly to set value of the bar from the actor
Yea, you are currently only grabbing the actor with the index 0.
You’d need to get all actors of class and let a ForEachLoop do the rest.
(although I would rather let the actor do the work, instead of the widget)
Inside of the blueprint as is suggesting you can use this Cast to parent actor of widget? - UI - Epic Developer Community Forums method to access your specific widget and set the percent bar value on the Event Tick. You could probably do the cast on Event Begin Play and store your user widget object to avoid casting it on each tick.