chardly38 Posted February 28, 2019 Posted February 28, 2019 In this mission I testing some random flags to go from 1 to 5. The reason is that I want to have a mission with 15 to 20 targets in the NTTR map. At a point in the map I will set a trigger to add a radio item. That radio item will (flag set random value) 1 with min 0 to max 5. When a flag equals 1,2,3,4,or 5 then targets will be active or as desired. The problem im having is not all of the flags will be selected. Is there a way to make sure that all flags will be active. In the mission below most of the time only 3 targets will be active.flag test.miz [sIGPIC][/sIGPIC] =&arrFilter_pf[gameversion]=&arrFilter_pf[filelang]=&arrFilter_pf[aircraft]=&arrFilter_CREATED_USER_NAME=chardly38&set_filter=Filter&set_filter=Y"]MY SKINS And Helios i7 2600k 3.4 quad w/ Hyper N520 cpu fan_, Asus Sabertooth z77_, RX 580_, Corsair Vengeance 1800 8Gb ram_, 112 OCZ Vertex 3_, Corsair HX 1000, 3 screens res 5292x1050_,and 1 1680x1050 Helios Ir Tracker 5 with Pro Clip_,Hotas Warthog#12167 ...
dark_wood Posted March 4, 2019 Posted March 4, 2019 (edited) Not very clear what you need (i can't check the mission file now), so i will try to guess an answer: --first, set the radio item triggers MISSION START > no condition > RADIO ITEM ADD (flag 1, value 1, activate targets) ONCE > FLAG EQUALS (flag 1 = 1) > SET RANDOM FLAG VALUE >flag 2, from 0 to 20 --then activate desired groups - 0 value will not activate anything --activate single groups ONCE > FLAG EQUALS (flag 2 = 1) > GROUP ACTIVATE (group 1) ONCE > FLAG EQUALS (flag 2 = 2) > GROUP ACTIVATE (group 2) ONCE > FLAG EQUALS (flag 2 = 3) > GROUP ACTIVATE (group 3) --activate multiple groups (clone first and update the data) ONCE > FLAG EQUALS (flag 2 = 4) > GROUP ACTIVATE (group 1), GROUP ACTIVATE (group 2) ONCE > FLAG EQUALS (flag 2 = 5) > GROUP ACTIVATE (group 2), GROUP ACTIVATE (group 3) --activate 5 groups ONCE > FLAG EQUALS (flag 2 = 12) > GROUP ACTIVATE (group 1), GROUP ACTIVATE (group 2), GROUP ACTIVATE (group 3) , GROUP ACTIVATE (group 4) , GROUP ACTIVATE (group 5) And so on, until you cover all desired combinations. I have set the random flag from 0 to 20, but you can set it to whatever you need, is up to you how many groups/units activate once. Edited March 4, 2019 by dark_wood
Recommended Posts