When using a script to use setPos on AI in a group the game can freeze momentarily if that AI group is currently pathfinding through a building. The duration of this freeze seems to vary depending on which building the AI are in, and the distance between their original position and the position they're being set to.
The following situations do not freeze:
- Using setPos on AI in a building when they're very close to their setPos position.
- Using setPos on AI when they're not in a building from any distance.
The following situation sometimes doesn't freeze
- Using setPos on AI in a building after each unit has reached its respective formation hold point.