Problems dealing with damage

Hi everyone.
I’m currently starting using UE4 without previous knowledge of videogame development.
Now i’m trying to apply damage to an AI and for some reason Im not able to receive on the AI.
Here are some screenshots of what i’ve done.
The AI LifeBar widget:

The any damage event on the AI blueprint:

The apply Damage event:

And finally a screenshot of the game, printing the damage i’m making:

I would be very glad if someone can help me to solve this.

get all actors of class for the health bar makes no sense
that would only work if you only have one enemy actor at all times, you need to somehow get the character the health bar is attached to.

Assuming it’s a widget created by a UWidgetComponent you can create a function that gets the owner which is called on your AICharacter on begin play.