Parameter 1 (I): Number of fighters to gather minerals for (0=as many as possible)

This mission is a replacement for the lfm friendly code. Like lfm, it has two parts:

  • First, it loads minerals for the fighters into the ship's cargo hold. Each fighter requires 3 kt Tritanium, 2 kt Molybdenum and 5 supplies (configurable, ShipFighterCost). When the mission parameter is not zero, it will load minerals for at most that number of fighters. Otherwise, it will load as much as fits into the ship.
  • Second, minerals in cargo space will be used to build fighters. In particular, this will also process minerals you loaded manually (and may thus build more fighters than specified in the mission argument).

Preconditions: (same as for lfm)

  • ship has fighter bays
  • ship has fuel
  • fighter building is enabled for ship owner (AllowBuildFighters)
  • ship is at a friendly planet (otherwise, only minerals from cargo hold will be processed)

Relevant PControl Stage: BuildFighters.