Line Trace Damage Actors

Hi there. I’m using a linetrace weapon instead of a projectile based. Can I still damage actors and AI if set up correctly?

I attempted to create an exploding barrel but the tutorial uses projectiles instead of a line trace.