Dist

From EDukeWiki
Revision as of 16:29, 2 March 2011 by Rasmusthorup (talk | contribs)
Jump to navigation Jump to search

dist <GAMEVAR> <SPRITE1> <SPRITE2>

Used to return the 3D distance between SPRITE1 and SPRITE2 into GAMEVAR.

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.