How to cast different BP for apply a line trace and beam target

Hi

They are different BP, each have a function, they can not be childs as many of their elements and their programming is different, I do not know how to call both the BP of the character so that it applies the same programming to each one of them. I already look for and I don’t find the answer and I don´t understand the documentation very well, because I consider myself a beginner in this, if they could orient me I would be very grateful, and I despaired.

This is the cast that I need to solve

This is the rest of the programming