LuaUnitGroup.waiting_for_path
Posted: Fri Sep 30, 2016 2:29 pm
We can issue commands to LuaUnitGroups, and the game's pather runs in the background over many ticks until a path can be found.
In the meantime, the unit group remains basically motionless.
Sometimes it can take a very long time to find a path, either because the target is very far away, or because there is no direct route - the unit group has to "go around" some other very large object.
The unit group seems to get destroyed when a path cannot ultimately be found. This is useful information.
It would be very helpful to also have the information that the game is still in the process of trying to calculate a path to the target of the previous command. I think a readonly boolean called "waiting_for_path" would be perfect!
Thanks!
In the meantime, the unit group remains basically motionless.
Sometimes it can take a very long time to find a path, either because the target is very far away, or because there is no direct route - the unit group has to "go around" some other very large object.
The unit group seems to get destroyed when a path cannot ultimately be found. This is useful information.
It would be very helpful to also have the information that the game is still in the process of trying to calculate a path to the target of the previous command. I think a readonly boolean called "waiting_for_path" would be perfect!
Thanks!