Actors of event called "On Component Begin Overlap (Box collision)"

Thank you all very much for your answers.

Yes, the three BPs have a common parent class, but each child BP has its own variables which are the ones I want to set depending on which BP has collided with the enemy.

I have been looking at the interface, but it is not very clear to me how it should be.

In the case of the “On Component Begin Overlap (Box collision)” event, what is the type of input variable that the interface function should have? Actor? and if so, would it be an actor class reference or another type?

Where “Actor Out” would be the BP of the character with which the enemy has collided.

Would it be something like that?

If not, could you give me an example of exactly how it should be done with blueprint?