So, I'm at a mental block at the moment and I'm 99% certain it's entirely just me staring at the screen and being at a loss.
I have a mission where I want it to be replayable for my group while I work on new stuff. My idea was to have a framework where, upon start of the mission, it would randomly choose one of 3-5 tasks to assign the squad.
Now, I'm not sure if I went the hard way about doing this. I've been making missions for a long time, but never really have done randomized stuff like this outside of enemy spawns and such.
In the init.sqf, I defined the array of tasks like:
Then, in another file called randomArray.sqf (which is activated when you pick up the first piece of intel at the beginning), it has:
I suppose my mental block would be, in the .sqf files for each task, what would I need to do to have those activate in-game tasks? For instance, one of the tasks is to destroy an ammo depot I just named "russian_ammo_dump". For further clarification, I used the in-game modules to create each task.