Does a GetPlayerDistance node exist?

Who knows how to get a player distance from a object in the console?

I want to measure the red reticle ranges of certain weapons.

You would get the the two x,y,z vectors and then subtract them. There is a maths node that specifically subtracts vectors.

This gives you a vector representing the distance between the two points.

There is then another node that gives you the length of a vector.

Voila. The distance between two points.

Other wise it’s the square root of all the axis differences squared and added together. Yay, trigonometry.

1 Like

Yay, more brain work for me. :disappointed: