Units automatically repair near the nearest active repair turret if it’s not too far away. They will approach to the nearest enemy core if there are no dangerous enemy units or turrets around them. If a unit can’t land to attack, it switches to kamikaze mode, flying straight at the enemy until it lands or explodes. You can select the desired bomb type in the sorter or place an unassigned one. You can also direct units to attack automatically repairing them
The easiest way is to download vela-ai-scheme.msch and import it from mindustry's Schematics menu.
- Open vela-ai-scheme.msch file
- Click the Download button (the icon on the top right):
- Launch Mindustry
- Open Database → Schematics
- Click Import Schematics → Import File, and select the downloaded
.mschfile
Note
There’s also a version optimized for the Eradication Rapid server: vela-ai-scheme-rapid.msch
The source code is written in MindCode, so, please, read the documentation first if you are not already familiar with it. For syntax highlighting, you can use VSCode with Mindcode extension.
The scheme consists of 2 cloned Main hyperprocessors and 1 Message microprocessor.
Their purpose:
- Main: All logic related to units, including repair, bomb loading, attack, approach etc
- Message: Writes messages, defines the item in the unloader/item source and enables the logic if the player controls the arc turret
