private Waypoint setupNewWaypoint(Vessel v) { if (!useWaypoints) { return(null); } waypointsOn = true; Waypoint wp = new Waypoint(); wp.celestialName = TargetBody.GetName(); wp.latitude = 0; wp.longitude = 0; wp.altitude = 0; wp.index = 0; wp.id = "dmVessel"; wp.iconSize = 32; wp.blocksInput = false; wp.seed = SystemUtilities.SuperSeed(this.Root); wp.isOnSurface = false; wp.isNavigatable = false; wp.enableMarker = false; wp.enableTooltip = false; wp.landLocked = false; wp.name = v.vesselName; wp.contractReference = this.Root; WaypointManager.AddWaypoint(wp); return(wp); }