Jump to content
RizlaUK

Random Rotation After Restart

Recommended Posts

Hi,

I wondered if there's a way to upload many .pbo mission files with time and or weather variations and randomly select one of them files after an automated server restart? I'm looking to make it so there's more weather and also some dawn/dusk start times. I also thought that I could then allow voting for maps for players to decide what they want when no admins are around. Is this possible?

Regards

Rizla

  • Like 1

Share this post


Link to post
Share on other sites

Automatic mission selection is defined in the Missions Cycle class of your server config file.

You can define the params these missions are automatically loaded with though.

 

So if you wanted to have the appearance of random selection, just created a very large mission cyclle class listing varying the params of each mission listing or edit the mission so that the daytime and weather params have a random option and set that as default.

That's the best you can achieve

  • Like 1

Share this post


Link to post
Share on other sites

Automatic mission selection is defined in the Missions Cycle class of your server config file.

You can define the params these missions are automatically loaded with though.

 

So if you wanted to have the appearance of random selection, just created a very large mission cyclle class listing varying the params of each mission listing or edit the mission so that the daytime and weather params have a random option and set that as default.

That's the best you can achieve

 

Thanks for the reply terox. Can you give me an example of how to set it correctly what you have suggested please?

 

// MISSIONS CYCLE (see below)

class Missions

{

          class Mission1

         {

              template="cannonfod3.Altis";

              difficulty="Regular";

          };

};

 

Thanks a lot.

 

Rizla

Share this post


Link to post
Share on other sites

It's all on the wiki page m8

 

https://community.bistudio.com/wiki/server.cfg

 

It's supposed to work, but i've never tried it

 

class Missions
{
    class CanBeAnything // name for the mission, can be anything
    {
        template = "parametersTest.Desert_E";    // omit the .pbo suffix
        difficulty = "regular";            // difficulty: recruit, regular, veteran & mercenary as specified in *.Arma2profile
        param1 = 2;                // dress
        param2 = 26;                // age
        class Params
        {
            Name = 2;
            WorkPlace = 0;
            Friend = 1;
        };
    };
};
  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×