CargoTransferWait amount:Cargo, target:Int,
  [flags:Any]

Transfers cargo to a ship, wait until amount transferred. This command is similar to CargoTransfer, see there for details about its parameters. It will try to transfer cargo from this unit to ship sid. It will continue execution when all cargo has been transferred.

For example,

 CargoTransfer "200n", 42

will load 200 kt Neutronium onto ship 42. If the unit this command is invoked from has enough cargo, and the receiving ship has enough free room, the command will succeed immediately. Otherwise, the script will wait until cargo or free room becomes available, and continue until all cargo has been transferred.

Since: PCC 1.0.11, PCC2 1.99.21

See also: CargoUpload, CargoUploadWait, Planet Commands, 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.