SetFleet fid:Int

Sets the fleet this ship is member of. fid can be one of the following:

  • 0 - the ship is not member of any fleet.
  • the ship's id - the ship is in a fleet alone.
  • a fleet id - the ship becomes member of the specified fleet.

If you're putting the ship into a fleet, but it is already member of a different one, it leaves its old fleet first (as if you had written SetFleet 0). This makes a difference when you're putting a fleet leader into another fleet.

See also: Fleet$ (Ship Property), Ship Commands

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.