TL:DR : Q: How do I get a Vessel object for the current vessel, when not in a part module
I'm trying to write a plugin for remotetech that will after a delayed time ( 1 - 2 hours), will start cycling the longest range transmitter through different targets to try to find a connection if there isn't one available.
Scenario.
My duna network just went out of range of kerbin, but there is a possible connection available via another satelite in a sun orbit. I want to have the probe start cycling possible connections until it finds a valid connection.
In the future, this would be done via an interface while still in kerbin orbit, ie.
Kerbin - Mission Control
Comms Sat 1 - 6
Sun Sat 1 - 6
Jool comms 1 - 6
etc.
Thanks
GE