Open johnbartholomew opened 12 years ago
Agree with the latter - it should be automatic. If not it allows the script to leave the engine in an inconsistent state.
A longer term option might be to add a more general space-traffic-control system, that would provide a way for ships to negotiate (with the station) to request or release docking slots and parking slots, query the correct approach to dock and so on. Note that most of these facilities already exist internally (by necessity), though maybe not with the flexibility or sophistication that a general space traffic control system might have.
SpawnShipParked allocates a static parking slot (of which there are currently four). There is no way to deallocate this slot. Either Lua should have Unpark, similar to Undock, or (preferably in my opinion) ships should automatically negotiate with the station to unpark when their AI is re-tasked to do something other than hold position (this may require a new AI task 'park' which would be derived from hold position and just add the functionality to request or release a parking space).