# How to Set Up Mission Rotation on Your Arma 3 Server (/docs/arma-3/mission-rotation)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Set Up Mission Rotation [#set-up-mission-rotation]

<Steps>
  <Step>
    Stop the server from **Console** in the [XGamingServer Panel](https://panel.xgamingserver.com).
  </Step>

  <Step>
    Open `server.cfg` in **Files** and add:

    ```
    randomMissionOrder = true;
    autoSelectMission = true;

    class Missions
    {
        class Mission1
        {
            template = "MyMission.Altis";
            difficulty = "Regular";
        };
        class Mission2
        {
            template = "MyMission2.Stratis";
            difficulty = "Veteran";
        };
    };
    ```
  </Step>

  <Step>
    Upload mission `.pbo` files to the `mpmissions/` folder.
  </Step>

  <Step>
    Save and start from **Console**.
  </Step>
</Steps>

Key Settings [#key-settings]

| Setting                   | Description                                      |
| ------------------------- | ------------------------------------------------ |
| `autoSelectMission`       | Auto-start next mission when players connect     |
| `randomMissionOrder`      | Randomize mission order                          |
| `persistent = 1`          | Keep mission running when all players disconnect |
| `missionsToServerRestart` | Restart server process after X mission ends      |

Template Naming [#template-naming]

The template format is `missionName.terrainName` — matching the `.pbo` filename in `mpmissions/`.

Related Guides [#related-guides]

* [Change Map](/docs/arma-3/change-map)
* [Server Configuration](/docs/arma-3/configure-your-server)
