docking abort by script?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

docking abort by script?

Post 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?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: docking abort by script?

Post 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.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: docking abort by script?

Post by Commander McLane »

Thanks! I had completely forgotten about the optional parameter. I guess because I haven't used it before. :D
Post Reply