Dist

From EDukeWiki
Revision as of 16:18, 2 March 2011 by Hendricks266 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.