Open aco4 opened 1 week ago
I have no idea how to place a unit in the center of a building preview without using scripts.
When you start a game, the trucks are typically centered perfectly.
For some reason the droid doesn't even make it onto the list of nearby droids.
This has been known for some time, which is why AI bots have some specific code behavior to avoid it. Good issue report. Prob best to update the AIs following.
Before building a structure, units will get pushed out of the way. This doesn't happen if the unit is perfectly centered on the tile.
Video
In the first video (attached below), I start a game with 1 truck and try to build a factory on top of it. The truck doesn't get pushed, and the factory can't be built. I then try to build the factory 1 tile to the right. The truck gets pushed, and the factory is built:
https://github.com/user-attachments/assets/23261f6b-45e2-483c-8176-45210312bd4a
In the second video (attached below), I start a game with 4 trucks and try to build a factory on top of one of the trucks. It does get pushed, and I can build the factory:
https://github.com/user-attachments/assets/5db0eba6-087e-4b96-a89c-b107af1fc1f0
To Reproduce
Start a skirmish game with the map below. (Rename
.zip
to.wz
)10c-Lekiro.zip
Restart the skirmish game.
Expected behavior
The truck(s) should always get pushed. If perfectly centered, choose any arbitrary direction to push the truck.
System
Additional Context
Not tested with smaller structures (e.g. research facility, bunker)