Dist: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''dist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]> | '''dist''' <[[gamevar]]> <[[sprite id|sprite1]]> <[[sprite id|sprite2]]> | ||
Calculates the 3D distance between | 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. | <[[gamevar]]> is set to the distance between <[[sprite id|sprite1]]> and <[[sprite id|sprite2]]>. It is useful for locational damage, for example. |