Need help: vector length

Hello everybody! I have some problems with calculating vector’s length.
I want to calculate distance between point A (x1, y1, z1) and a player (x2, y2, z2) but only in coordinates X and Z. Can I do that w/o giant rules to write like this one?
https://imgur.com/bLxt4FI

Copy the two vector into two separate variable without the y coordinates, and use the DISTANCE_BETWEEN function.

1 Like

Well, I found more elegant solution then I used before:
Distance between( Subtract( VectorA, VectorB ), VECTOR(0, Y Component of ( Subtract( VectorA, VectorB ) ), 0 ) )

1 Like

You can multiply a vector by (1,0,1) to nullify the Y value.

3 Likes

You can also do,

Distance between( Multiply( Vector A, Vector (1, 0, 1)), Multiply (Vector B, Vector(1, 0, 1)))

edit Oops, didn’t see SpaceJester’s reply. That.

2 Likes

Oh that’s great! Thank you. :slight_smile: