protected override void onPartFixedUpdate() { base.onPartFixedUpdate(); var commander = VesselCommander.GetInstance(this.vessel).EngineCommander; Events["DisableCommander"].active = commander.IsActive; Events["EnableCommander"].active = !commander.IsActive; }
public void DisableCommander() { Events["DisableCommander"].active = false; Events["EnableCommander"].active = true; VesselCommander.GetInstance(this.vessel).EngineCommander.IsActive = false; }