LineTraceByChannel - detect a Blueprint class

Hello,

How would I use a LineTraceByChannel to detect the Blueprint Class of my AI_Enemy to be able to destroy it?

As well as this, the Print String does not show any of the enemies regardless of being plugged into the Hit Actor or Hit Component part of the Break Hit Result node. Any help would be greatly appreciated :slight_smile:

Hi,
Have you tried using Get Class from Hit Actor and then checking if it’s the class you wanted and then destroy actor after branch?
Something like this maybe…

279213-classprint.png

Hey all,

Thanks DonBusso, yeah I did try that and that was what was not being picked up. I worked out yesterday that my AI blueprint’s collision settings were on Pawn when it should have been on BlockAll. Hopefully this helps someone :slight_smile: