[0.17.59] LuaUnitGroup.set_command randomly fails
Posted: Sun Jul 28, 2019 3:00 am
I'm not too sure how much this a bug or not, but when I spawned unit groups and set_command on it to attack area spawn it randomly fails. See the attached save. After one tick the unit group is spawned and the command is set (set_moving is also done, but not doing does not affect the outcome). One tick later the debug drawing shows the group having state 1-moving (likely previous tick, LuaRendering seems to be delayed a tick.). Another tick later the debug drawing shows the group having state 4-finished. The on_ai_command_completed event indicates the command failed.
I worked around it by despawning the group when it failed so nothing important.
I worked around it by despawning the group when it failed so nothing important.