The 'fireWeapon order would make a ship fire a certain weapon/launcher/missile at its current position as soon as possible (when the order activates), regardless of friendly fire or whether it has a target. It would be useful for implementing a mine-laying ship that goes around launching mines. The function argument could be the itemStruct of the weapon/launcher/missile to use.

The 'invokeItem order would make a ship invoke a certain item as soon as possible (when the order activates). The function argument could be the itemStruct of the item to invoke.

george moromisato 20 Dec 2018:

Added in 1.8 Beta 5. Thanks!

(shpOrder theShip 'fireWeapon theWeapon)

theWeapon can be an installed weapon or a missile on the ship

(shpOrder theShip 'useItem theItem)

theItem must be on the ship