Line Trace not applying damage to an actor

I’m currently using line trace for objects to trace a line that will act as a melee attack towards enemies. The problem is I can’t get it to collide and apply damage.

I was originally doing this with line trace by channel but that worked on all of my world static objects but not on my actors. They all have a custom collision class called Enemy which I’m calling in an array.

I’ve attached images of both, thanks everyone for your help!

your other actors are npcs or other players?

They’re all npcs

Also to further elaborate this works on every enemy BUT this one. It’s from the same class I’ve done all of my enemies off of.

Could it be because I have an interp to movement component on it? That’s my only difference.

when you do the linetrace, does it actually collides the npcs? if you print the HitActor it should say what its hitting

Yeah it goes green on the hits with all of them except for this guy. If I attach a print string with the world context object I just get a hello but I’m pretty sure that’s because it’s in the chain of events not because I have the hit actor linked to it.

Thanks for helping so far too I really appreciate it.

np, im still on the blind tho, not sure if i will be able to help at all. if you make the Print string print the DisplayName of the HitActor, what does it says?

Ok yeah it’s not printing the enemy. The other thing is it’s going right through me despite being on the same coordinates as everything else.

Ah son of a ■■■■■ I got it.

It was literally off by one unreal unit and it was going by. Ugh what a dumb mistake. Thanks so much for working through this with me.

have you tried setting the *ENEMY SETTINGS collision preset to blockall?