Scoob wrote:Like you say docked is docked, however undocking = boom for these large internal dockers...sorta like trying to pass a whole watermelon I'd imagine...ouch.
Well, noone mentioned any ships getting destroyed. Only that there would be some vague "problem".
Alas, scripts can not tell if an object has multiple types of hangars.
Only if ship A is physically able to dock at object B and if object B has a matching docking slot free. This is just an overall total of all available docking bays.
Since the script can only use put into environment
to fake-dock the ship it can not tell what kind
of docking slot the ship is actually put in.
So this problem is unavoidable with objects that can dock more than one ship class. There is no way for a script to detect this situation.
For 99% of vanilla X3 this script should be perfectly safe. Worst case a TS tries to undock from the internal hangar of an argon trading station or somesuch...
What if every ship in the game were invulnerable when undocking until it had traveled 200m + it's own ship length.
It would still not be perfect in some situations but maybe...