Dist: Difference between revisions
Jump to navigation
Jump to search
Rasmusthorup (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''dist''' < | '''dist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]> | ||
Used to | Used to calculate the 3D distance between <[[sprite id|sprite1]]> and <[[sprite id|sprite2]]>. | ||
<[[gamevar]]> is equal to the distance between <[[sprite id|sprite1]]> and <[[sprite id|sprite2]]>. Compare with [[ldist]], which uses only x and y coordinates. | |||
It is useful for locational damage, for example. | It is useful for locational damage, for example. | ||
[[Category:EDuke32 specific commands]] | [[Category:EDuke32 specific commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |