Dist - EDukeWiki

# Dist

From EDukeWiki

dist <gamevar> <sprite1> <sprite2>

Calculates the 3D distance between two sprites.

<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.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Dist&oldid=9447"
Categories:

- EDuke32 specific commands
- Sprite manipulation