[0.16.51] Unitgroup not pathfinding while center of group is on entity of own force.
Posted: Fri Dec 07, 2018 1:45 pm
While working with unitgroups i stumbled on some strange behavior of the path finding.
The pathfinding doesn't work when the center of the group is on an entity of the same force.
How to reproduce ?
1. Create a unit group with some units
2a. Have the group center/position on a entity of its own force (example: nest or silo).
2b. Or set the group to wander, now it will sometimes wander over a nest
3. Give the group a command to move.
Some examples with debug info enabled.
The group center on the middle of the nest:
The group center on a silo of the same force:
The pathfinding doesn't work when the center of the group is on an entity of the same force.
How to reproduce ?
1. Create a unit group with some units
2a. Have the group center/position on a entity of its own force (example: nest or silo).
2b. Or set the group to wander, now it will sometimes wander over a nest
3. Give the group a command to move.
Some examples with debug info enabled.
The group center on the middle of the nest:
The group center on a silo of the same force: