Jump to content

Randomization between different targets


Grizzly1606688174
 Share

Recommended Posts

Hi guys.

 

I want players to be able to fly out to an IP, (trigger 5000) and then recieve a mission in a randomized order so they can destroy the various tasks and sites I come up with..

 

I have set up a number of late activation units on different sites.

Lets say 3 different targets/missions as a start.

 

Each time a player reaches the IP, I want it to select:

-1 of the three+ mission sites to activate.

-only to select one that has not already been active.

 

I've allready used flag 1-5 for other stuff.

 

What would be the easiest way to do this? :smartass:

 

 

EDIT: Aww f... wrong place. Needs to be in mission builders corner - sorry.


Edited by <Grizzly>
Link to comment
Share on other sites

For a small number of missions/targets, you can just list every possible order (6 orders for 3 missions) and use a flag set random value to pick one order at the beginning of the mission.

 

For many missions, you could use a selector flag that takes a random value. A checker flag then checks to see if the random value matches a mission number. If it does, the flag corresponding to that mission gets set to zero and the checker is disabled. When the mission is complete, the checker is reactivated. If the checker is set to 1-3 for example, since the last mission was set to zero, it can never be selected again.

Awaiting: DCS F-15C

Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...