dist <gamevar> <sprite1> <sprite2>
Calculates the 3D distance between <sprite1> and <sprite2>.
<gamevar> is set to the distance between <sprite1> and <sprite2>. It is useful for locational damage, for example.
Compare with ldist, which uses only x and y coordinates.