Set waypoint to IMyFlightMovementBlock

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Set waypoint to IMyFlightMovementBlock

      Hey, I am trying to create a ship with a IMyFlightMovementBlock (AI
      Flight (Move)-block). I am trying to create a script to set a waypoint
      to that block, to get the ship fly to that location.


      It looks like this:

      C#-Quellcode

      1. foreach (IMyFlightMovementBlock movementBlock in getMovementBlocks())
      2. {
      3. Vector3D vector = new Vector3D(1D, 1D, 1D);
      4. IMyAutopilotWaypoint waypoint = new MyAutopilotWaypoint(vector, "Target");
      5. movementBlock...?
      6. }

      And I am wondering how to set the waypoint, to make the ship fly to that vector point. Can anyone help me?

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Scytero ()