public static bool AGX2VslGroupState(uint FlightID, int group) //8 on test, owrks { if (HighLogic.LoadedSceneIsFlight) { if (FlightGlobals.ActiveVessel.rootPart.flightID == FlightID) { return(AGXGroupState(group)); } else { AGXOtherVessel otherVsl = new AGXOtherVessel(FlightID); return(otherVsl.StateCheckGroup(group)); } } else { // ScreenMessages.PostScreenMessage("AGX Action not checked, not in flight", 10F, ScreenMessageStyle.UPPER_CENTER); ScreenMessages.PostScreenMessage(Localizer.Format("#AGEXT_UI_SCREEN_MESSAGE_4"), 10F, ScreenMessageStyle.UPPER_CENTER); return(false); } }
public static bool AGX2VslGroupState(uint FlightID, int group) //8 on test, owrks { print("AGX Call: group state for " + group + " for vessel " + FlightID); if (HighLogic.LoadedSceneIsFlight) { if (FlightGlobals.ActiveVessel.rootPart.flightID == FlightID) { return(AGXGroupState(group)); } else { AGXOtherVessel otherVsl = new AGXOtherVessel(FlightID); return(otherVsl.StateCheckGroup(group)); } } else { ScreenMessages.PostScreenMessage("AGX Action not checked, not in flight", 10F, ScreenMessageStyle.UPPER_CENTER); return(false); } }