GetDockPoint(ship, index, outer);
It gives the given indexed dock’s outer/inner endpoint, from 1 (outer is not 0 – outer)