When I use
Though, I was wondering. Is it possible that spawning the dummy unit somewhere where it is less likely to spawn on top of another unit is faster? It would not need to calculate and adjust the position of the unit when it spawns it. I have to set the unit's position after, anyway, so it is the same code, just I would change the above code to something like
CreateUnit(myPlayer, 'h001', x, y, 0)
for a unit that has locust ability, it still adjusts the unit's position as though it had collision. I can get around that by setting the unit's position afterwards, so it's not really a problem.Though, I was wondering. Is it possible that spawning the dummy unit somewhere where it is less likely to spawn on top of another unit is faster? It would not need to calculate and adjust the position of the unit when it spawns it. I have to set the unit's position after, anyway, so it is the same code, just I would change the above code to something like
CreateUnit(myPlayer, 'h001', 0, 0, 0)
(assuming 0, 0 is a good spot to spawn them).