Dist: Difference between revisions
Jump to navigation
Jump to search
Helixhorned (talk | contribs) Corrected Dist. Dist:xyz, Ldist:xy |
Hendricks266 (talk | contribs) No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''dist''' < | '''dist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]> | ||
Calculates the 3D distance between two sprites. | |||
<[[gamevar]]> is set to the distance between <[[sprite id|sprite1]]> and <[[sprite id|sprite2]]>. It is useful for locational damage, for example. | |||
Compare with [[ldist]], which uses only x and y coordinates. | |||
[[Category:EDuke32 specific commands]] | [[Category:EDuke32 specific commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |