The Player Character Won't Deal Damage, What am I Doing Wrong?

I’m not very experienced in the coding of unreal engine. In my current project the player character is supposed to use LMB and RMB to swing a sword 2 different ways, a light and heavy attack. I followed some tutorials and I’m pretty sure that they gave me conflicting ways to go about it and I jumbled my code. The AI enemy can deal damage at a set point in the animation and kill the player. But the player never connects damage to the AI enemy.

Can someone please tell me how to fix this so the player will harm an enemy during a point in the sword animation? Thank you for your time.

AI damage taking system

Player Attack + Damage system

Player Animation Blueprint Attack Code


Can you show what happens when you Draw Debug:

image

Set it to persistent.

This is what it looks like after LMB is pressed and the player swings the sword.

If you print the display name of the hit actor, what do you get?

Bump that… (What the cool kids say right???)

…add a print block to show what OutHit->HitActor is in AnimNotify_Damage… …maybe this will provide a hint as to what is going on…

It doesn’t say anything, no string prints.