public static void AbortExecution() { MechJebCore activejeb = GetJeb(); if (activejeb != null) { MechJebModuleNodeExecutor activenode = activejeb.GetComputerModule("MechJebModuleNodeExecutor") as MechJebModuleNodeExecutor; if (activenode != null) { activenode.Abort(); } } }
public static void ExecuteAllNodes() { MechJebCore activejeb = GetJeb(); if (activejeb != null) { MechJebModuleNodeExecutor activenode = activejeb.GetComputerModule("MechJebModuleNodeExecutor") as MechJebModuleNodeExecutor; if (activenode != null) { activenode.ExecuteAllNodes(activejeb); } } }