How to ignore other enemies when locked on?

I’m using a line trace between my character and the target (for my lock on system) to check if there is something in between him and the enemy. So I can’t lock on through walls and stuff. However, every time another enemy passes between the character and the target, it breaks the trace and I get “un-locked on”. My plan was to ignore all actors of my enemy class except the current target (I have a parent class set up with multiple types of enemies), but I can’t seem to figure it out. Any ideas or suggestions? I’m open to a better solution as well if someone has one.

Thanks!

Hope it help

Perfect. Problem solved. I knew it was something simple but it was eluding me.