Dist

From EDukeWiki
Revision as of 17:15, 2 March 2011 by Hendricks266 (talk | contribs)
Jump to navigation Jump to search

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.