ElWanderer / kOS_scripts

kOS scripts and libraries
28 stars 8 forks source link

Docking crashes if you target a specific port #152

Open ElWanderer opened 4 years ago

ElWanderer commented 4 years ago

TARGET is usually a vessel or body, but if you are close enough to be able to select one, it can also be a docking port. A docking port doesn't inherit from orbitable, so the usual attempt to rendezvous won't work.

It is probably worth doing some type checking in the scripts when determining what is a valid target.

It would also be nice if you could pick a specific port to force the docking routine to choose that.