Can a class blueprint detect line trace hits?

Hi, I set up a line trace in the character blueprint that fires when E is pressed. What I would like to do is have class blueprints (actors in the scene) detect that they have been hit by the line trace and have that trigger an event within the class blueprint itself. Is this possible?

I have read about detecting which actor is hit within the character blueprint and then casting from the character blueprint to the class blueprint. I would like to avoid doing this, unless it’s the only option.

Any thoughts you have would be great.

Thanks!