Bearfoot Posted January 11, 2016 Posted January 11, 2016 Hi all, Apologies in advanced if this is dead horse topic or covered in docs/faqs etc.: please point me in the right direction. I am interested in creating a mission which has some variability in group or unit(opfor/threat) placement, composition, etc. It seems to me that the way to do this might be to create a bunch of groups, each with late activation, then create a "ONCE" trigger condition with "Random" as the event that activates them. However, for a particular group of groups, I only want one and exactly one group activated. I am not sure how to set up the mission so that this is fulfilled (i.e., so as not get zero or more than one activated). For example, let's the say that the effect I want is for a group of Su-27 to appear at a random bearing from the player A/C. I would create, say, 5 groups of Su-27 (may be varying the number of units in each group), and place them at varying places, with the activations on all of them set to "late". Then I create a 20% random trigger for each of the 5 groups to activate them. OK, so now though, there is nothing to stop none or all 5 or anything in between of the groups being activated. How do I handle this? Thanks!
P5138 Posted January 11, 2016 Posted January 11, 2016 What you could do: - Create 5 groups, for example Su27A-Su27E - Set them all to late activation - Create a Mission Start trigger with no condition that will perform the command "Flag Set Random Value" on some flag to a number between 1 and 5 - Create Once triggers for each group to activate that group on a specific value of the flag.
Bearfoot Posted January 11, 2016 Author Posted January 11, 2016 Excellent! Makes perfect sense. Thanks!
Recommended Posts