clear_orders
Clears an autopilot’s order queue atomically when safe.
Function
Synopsis
btech.autopilot.clear_orders( autopilot )
Arguments
DbRef|Object autopilot- A registered BattleTech autopilot.
Returns
None.
Raises
mux.object.invalidormux.object.unavailablefor an invalid autopilot.btech.operation.failedwith reasonactive_orderif the engaged queue is nonempty.
Notes
Failure leaves the entire queue unchanged. Disengage first to preserve safety when clearing a nonempty active queue.