In a rather complicated missile trigger, I need to look around a given unit (u, located at point (x,y)) for potential enemies. When I use this line, all works fine:
When I use this line of JASS as custom script instead, something odd happens:
I have a lot going on in the map, but I can't imagine why these two pieces of code should function differently at all. I usually use the "GroupEnumUnitsInRange" just so I can avoid having to remove the leaks. But apparently the command is different in some way than the GUI action. Does it have something to do with the "null" at the end? I don't know what that codes for.
Anyway, I've solved the problem by using the GUI action, but I would like to know for future reference what the difference between the JASS command the GUI command is.
Thank you.
-
Set tempDamageUnits = (Units within 125.00 of (Point(x, y)))
When I use this line of JASS as custom script instead, something odd happens:
-
Custom script: call GroupEnumUnitsInRange(udg_tempDamageUnits, udg_x, udg_y, 125, null)
I have a lot going on in the map, but I can't imagine why these two pieces of code should function differently at all. I usually use the "GroupEnumUnitsInRange" just so I can avoid having to remove the leaks. But apparently the command is different in some way than the GUI action. Does it have something to do with the "null" at the end? I don't know what that codes for.
Anyway, I've solved the problem by using the GUI action, but I would like to know for future reference what the difference between the JASS command the GUI command is.
Thank you.