Can you get distance from where you click to the player

I was wondering if there was a way to get distance to from where the pawn is to under where the player would click? I want to make it that the line trace can only work with such a range and the way I would think would be able to do this would be the get distance to node by making an actor where clicked to then compare to the float but is there not an easier way?

If I understand you correctly, given the location of the two points (player location and clicked location) you can just subtract one from the other and use the VectorLength node:

Oh my word yes I can’t believe that I forgot about that it’s just what I was trying to do. Thank you.