| 02-21-2006, 03:37 PM | #1 | |
Greetings. One of these triggers stores the X and Y of a unit. The other gets them back later and compares them with the X and Y of the point the unit is ordered to. Something's going wrong, though, and all 4 reals (both sets of X and Y) are coming up as 0.0000.
The output message comes up as "XOrder 0.0000, YOrder 0.0000, XOrigin 0.0000, YOrigin 0.0000", so both the stored reals and the "target of order" reals are completely lost. There must be some elementary error of conception or implementation, but I'm not sure what. |
| 02-21-2006, 03:50 PM | #2 |
Allright, first of all, you're displaying origin coordinates twice, rather than order once and origin once. So, it's likely that the problem is only with the origin coordinates. To get a better idea regarding what's wrong with those, add some debug messages to the first trigger. |
| 02-21-2006, 03:52 PM | #3 |
This is just a random thing, but what happens if you set "stringHandle" to something else than "null" ? Edit: Nevermind, i missread something... |
| 02-21-2006, 05:18 PM | #4 |
Are you sure the gamecache is initialized? Else it can be caused by a bug with gamecaches that Vex found: http://www.wc3jass.com/viewtopic.php?t=2334 Try to make a new profile and check with that. |
| 02-21-2006, 06:40 PM | #5 |
make sure the conditions of the first trigger are true |
| 02-22-2006, 04:50 AM | #7 |
Wait! I got it! I needed to pause the unit before and unpause it after the call to ignore guard position. Now, as far as I can tell, it works great! Thanks for the insight. |
