HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit not returning to building?

03-25-2009, 05:01 AM#1
Blackroot
This script should return a unit to the nearest building of a certain type. It displays the debugmsg but doesn't work?

Anyone see an issue?

Expand JASS:
03-25-2009, 05:46 AM#2
Bobo_The_Kodo
Quote:
set r = dx*dx+dy+dy/10000

1) have to put parentheses around the distance. division is before addition
2) You added ry by itself instead of multiply

set r = (rx*rx + ry*ry) / 10000