public void ToggleAutoPilot(bool active)
 {
     if (active)
     {
         memoryBridge.SetBool("ClientAutoPilotActive", true);
     }
     else
     {
         memoryBridge.SetBool("ClientAutoPilotActive", false);
     }
     autoPilot = active;
 }
Ejemplo n.º 2
0
    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;
    }