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