Jump to content
Sign in to follow this  
A Man

Mission only once per restart

Recommended Posts

its dependend on the missionsystem.

but basically you want to do something like this:

1. find the array which contains the missionnames (e.g. in DZMS: DZMSMajorArray)

2. find the scipt which selects the missions. (e.g. in DZMS: DZMSMajorTimer.sqf)

in there, the mission gets selected (_varName).

after it was selected, substract it from the array like this:

3. DZMSMajorArray = DZMSMajorArray - _varName;

now the array contains all mission minus the selected ones. (works only if the arrayname is a global variable, or directly used in the script as a private variable)

Share this post

Link to post
Share on other sites

Thx for your answer. It worked almost as you said. The DZMS code needs a few adjustments and it work. Thx again mate

Code to pick a mission should look like that:

    //Lets pick a mission
    _varName = DZMSMajorArray call BIS_fnc_selectRandom;
    DZMSMajorArray = DZMSMajorArray - [_varName];


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

  • Create New...