This is a plugin for the Carrier Command Mod (see https://www.avorion.net/forum/index.php/topic,4268.0.html).
This will add a new command to make your fighters collect loot for you:
Installation
1. copy the contents of this zip into your Game Directory "Avorion"
2. edit the file mods/CarrierCommander/config/CarrierCommanderConfig.lua and add the folling line to the Config.carrierScripts table definition:
loot = {name="lootCommand", path = "mods/CarrierCommander/scripts/entity/ai/"}
3. edit the file mods/CarrierCommander/scripts/lib/lists.lua and add the lines
list.actionTostringMap[7] = "Collecting loot."
list.actionToColorMap[7] = ColorRGB(0.1, 0.8, 0.1)
Usage
Ingame in the Settings tab of the Carrier Commander Interface make sure to choose a squad for looting in the "Looting config" section.
Also use the checkboxes to configure what loot your fighters should go after.
Then in the ship commands tab activate the looting command.
Note that the other Carrier Commands might interfere with the looting script if your looting squad has weapons (gravitation turrets count as weapons to), mining lasers or salvaging lasers equipped, you can make dedicated looting fighters using repair turrets to prevent that.
This plugin was developed using Carrier Command version 0.9 and the current default branch of the game (version 0.15.8 ), i haven't tested it with the current beta branch yet.
Happy looting! :)
lootCommand_0.9.zip