Page 1 of 1

docking abort by script?

Posted: Wed Feb 08, 2012 5:50 pm
by Commander McLane
Is there a way to make a station abort all docking procedures by script? Or at least a workaround? What if I would send a DOCKING_COMPLETE or DOCKING_ABORTED to the station's AI?

Re: docking abort by script?

Posted: Wed Feb 08, 2012 7:12 pm
by cim
Commander McLane wrote:
Is there a way to make a station abort all docking procedures by script? Or at least a workaround? What if I would send a DOCKING_COMPLETE or DOCKING_ABORTED to the station's AI?
Launch a ship using station.launchShipWithRole and abortAllDockings true. Then immediately delete it.

Alternatively, scan around for ships with dockingAI.plist as their current AI, and send their AIs a DOCKING_ABORTED message.

Re: docking abort by script?

Posted: Wed Feb 08, 2012 7:14 pm
by Commander McLane
Thanks! I had completely forgotten about the optional parameter. I guess because I haven't used it before. :D