Hit-trace from Anim Notify State: How do I find the actor dealing the damage?

Hi, complete beginners question: I’m playing around with building a sword combat system. For an attack I let a character play a montage. To detect hits I’ve added a notify state to the crucial part of my attack-animation that does a sphere trace and checks if I hit something.

From that trace result I can deal damage to the actor that was hit. But I can’t think of a way to get information back to the actor that is dealing the damage/playing the animation. Lets say I want to do a “If you hit something increase health for the actor that dealt the damage” - how could I set this up?

1 Like

I know its been a few years but I’m sure some is looking for an answer like I was when I found this. What I did was make a blueprint interface with the outputs of Hit Results, Hit Actor, and Attacker. Then in the anim notfiy state, I called the function in the blueprint interface and took the owner of the animation as the Target and the Attacker, Hit Results as the Out Hit of my trace, and the Hit Actor out of a Break Hit Result of the output Hit Actor. This allowed me to bring in the function into my Player Character and take the results to do damage to the Hit Actor. It would look something like the picture.