Unit Locate
ulocate answers the question “where is the nearest”. It searches from the bound unit, and
what it finds is not units but places on the map: a tile with ore or a building.
Hence its shape: the answer is always coordinates, a “found” flag and — if a building is involved — the building object itself.
Lessons
Section titled “Lessons”- Where the ore isOre coordinates are not written out by hand: everybody's map is different, and the search is one line
- Buildings by flagA building cannot be searched for by type, but it can be searched for by role: core, turret, store, generator
- Damaged buildings and checking the findThe fourth kind of search looks for what needs repairing. And on the way, why the answer sometimes sticks
What you need first
Section titled “What you need first”«Binding by type» — ulocate can only search from a unit. The
lessons will tell you the rest themselves.
Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.