Is there a way to get distance between unique components of different blueprints?

Well I assume you are able to provide both locations to event you’re using for this.

From there you can simply do a - and then “get vector lengh”.

Vector - Vector provides vector between those two vectors and length of if is then distance between those two points.

I have a component in one blueprint and a component in another blueprint that I’d like to find distance between. Is there a way for me to do this? I know there’s a “Get Distance To” node that allows me to find distance between 2 actors…but that doesn’t work for my purposes.

I’m able to actually get location of each BLUEPRINT…but I don’t know how to get location of a COMPONENT within each blueprint. That’s where difficulty for me lies…

Hey VagrantProfile,

If you already have a reference to two Blueprints, you can cast to them to get their components. It might look something like this:

Hope that helps!

Hi ,

I much appreciate response and attempt for help…

What you did above is EXACTLY what I THOUGHT I could do! For reasons I don’t understand, when I drag off of a blueprint variable, I can;t “cast to” anything in order to then gain access to its components. I’d love to know what I’m doing wrong here because I’m just not getting why I can’t do what you did above. Here’s what I’m seeing:

(Ignore to nodes up top…they are calculating distance between BLUEPRINTS but not specific components WITHIN BP_Football and BP_Down_and_Distance blueprints I want to compare… 2 nodes in lower left are ones I want to get components from…)

When I drag off of ANY blueprint actor and type “cast to” in box, I don’t get ANYTHING to cast my Blueprint to as seen below (and it doesn’t matter if I have “context sensitive” checked or not)…

When you have a reference in your Level Blueprint, you don’t need to cast to it to get its functions or variables. In this case, you can pull off BP_Football reference and search directly for component you need.

,

YOU SIR, are a gentleman and a scholar. I did not know that “cast to” was not needed in level blueprints. You have unblocked me and provided me a great screenshot above as to what I can do to get what I need. I thank you, sincerely. Very much appreciate it!