Line tracing for jump collision

First of all,. For what you’re doing,. You’d probably want a box trace rather than a line trace. Second,. In your first picture you used (“get name ==”) to check the enemy,. Thats not a good way to do it,. You should be casting to your enemy blueprint (you can drag out the cast failed pin and plug itinto another cast if you have more than one enemy blueprint). Or you could use interfaces/dispatchers but let’s keep it simple. I’m a little confused with the rest of the question.

You can’t reference a line trace from a separate blueprint. What you can do,. Is have the enemy do the line trace,. Then in the player have a custom event with an input for an actor variable. Have your linetrace call that event on the player and plug self into the actor pin. Then in the Ayers blueprint,. Drag out the actor pin and cast it to your enemy.

I think that should answer your questonhope it helped!