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?
asked Aug 05 '15 at 04:33 PM in Blueprint Scripting
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:
answered Aug 05 '15 at 04:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here