public void ToggleAutoPilot(bool active) { if (active) { memoryBridge.SetBool("ClientAutoPilotActive", true); } else { memoryBridge.SetBool("ClientAutoPilotActive", false); } autoPilot = active; }
public void ToggleAutoPilot(bool active) { if (active) { memoryBridge.SetBool("ClientAutoPilotActive", true); targetVessel.vessel.gameObject.SetActive(true); targetVessel.vessel.transform.eulerAngles = new Vector3(90, 0, 0); controlMode = FlightControlMode.Automous; PIDpitch.StartPID(); PIDroll.StartPID(); } else { memoryBridge.SetBool("ClientAutoPilotActive", false); } autoPilot = active; }