Airwaves Man Posted November 12, 2016 Report Share Posted November 12, 2016 I want that a mission (major or minior) only starts once per restart so that no mission can spawn twice in a restart period. Im not sure how I can get that to work. Has anyone already a solution for it? Link to comment Share on other sites More sharing options...
seelenapparat Posted November 13, 2016 Report Share Posted November 13, 2016 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) Airwaves Man 1 Link to comment Share on other sites More sharing options...
Airwaves Man Posted November 15, 2016 Author Report Share Posted November 15, 2016 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]; juandayz 1 Link to comment Share on other sites More sharing options...
seelenapparat Posted November 15, 2016 Report Share Posted November 15, 2016 you are right, I forgot about the array definition. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now