PSYKOnz Posted August 14, 2019 Share Posted August 14, 2019 (edited) hi there. I'm looking for a SIMPLE NON SCRIPT BASED way to randomly activate groups of AI Aircraft sequentially. I have 6 flights sitting on runways around the map uncontrolled that will when activated scramble and fly towards an area to engage the players I currently have all AI Aircraft Scrambling on a single radio command here is what I'm trying to achieve - The players activate through radio command - THEN -mission randomly scrambles one of the 6 groups - player defeats group -Mission randomly scrambles one of the remaining 5 groups - player defeats group -Mission randomly scrambles one of the remaining 4 groups lather rinse repeat until all groups are dead I would also like to have it so if the player re-radios the aircraft it will randomly scramble the next group so they can make it harder with more aircraft and finally, the radio command is removed once all ai groups are dead any help would be much appreciated. I am exceptionally new to DCS Mission making so go easy on me hahaha :helpsmilie: Edited August 14, 2019 by PSYKOnz Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
feefifofum Posted August 14, 2019 Share Posted August 14, 2019 SWITCHED CONDITION (player activates radio, NO EVENT) - FLAG IS TRUE (1) - SET FLAG RANDOM VALUE (100, 1,6) FLAG OFF (1) -- it's important to turn the flag back off or the radio item only works once ================ SWITCHED CONDITION (re-roll, NO EVENT) - FLAG EQUALS (100, 1) FLAG IS TRUE (101) OR FLAG EQUALS (100, 2) FLAG IS TRUE (102) etc. - SET FLAG RANDOM VALUE (100, 1, 6) =============== ONCE (Group 1 spawn, NO EVENT) - FLAG EQUALS (100, 1) - GROUP ACTIVATE (Group 1) FLAG ON (101) ============== Repeat above for each group. ============== 1 ONCE (Mission Complete, NO EVENT) - FLAG IS TRUE (101) FLAG IS TRUE (102) FLAG IS TRUE (103) FLAG IS TRUE (104) FLAG IS TRUE (105) FLAG IS TRUE (106) - MESSAGE TO ALL ('All groups have been activated', 10) RADIO ITEM REMOVE (Activate Group) FLAG OFF (100) That's the quick & dirty version. A flag to act as the random number generator, a set of flags to check if a group has been spawned already and re-roll, and a trigger to check when all groups have been destroyed. Hope that gets you there. :thumbup: THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
PSYKOnz Posted August 14, 2019 Author Share Posted August 14, 2019 AWESOME thank you so much, ill give it a shot Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
PSYKOnz Posted August 16, 2019 Author Share Posted August 16, 2019 (edited) I have tried and tried, done everything exactly as instructed, I still can't get it to work! can you please take a look and help me to understand where I went wrong? Edited August 17, 2019 by PSYKOnz Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
PSYKOnz Posted August 17, 2019 Author Share Posted August 17, 2019 (edited) ok so i figured out that part of the problem was I had it set to activate group rather than push AI to start but even then it doesn't seem to work properly, I had to click the radio command twice to get it to randomly start the mig21s, but then the next 3 times I started the mission and selected the radio option nothing happened. attached is the up to date mission file, what am I doing wrong? again I'm looking for a one-time activation via radio that randomly starts the flights each time the preceding flight is shot down Edited August 20, 2019 by PSYKOnz Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
feefifofum Posted August 18, 2019 Share Posted August 18, 2019 I thought you wanted the player to control each spawn...that's a little bit different but the basic idea is still the same..didn't test your .miz but this should work.sequential random spawn.miz THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
PSYKOnz Posted August 19, 2019 Author Share Posted August 19, 2019 I was able to fix all the issues I was having with the random spawn, now ill try get this one to work, ill post up my results when it's done :) or if I need further help Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
PSYKOnz Posted August 20, 2019 Author Share Posted August 20, 2019 looks like I managed to nail it! thank you so much for all your help, I was able to get both types of random span working perfectly. I've attached the mission file if you want to take a lookNZArmA TRANING.miz Tomcat, Tomcat über allen Link to comment Share on other sites More sharing options...
feefifofum Posted August 20, 2019 Share Posted August 20, 2019 Glad you got it sorted. :thumbup: THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
Recommended Posts