Jump to content

Recommended Posts

Posted (edited)

So I'm working on a mission. 

 

So far I have made triggers that will randomly activate 1 of 3 or neither SAM sites from hold fire to free to fire.

I also have a trigger that will randomly activate 1 of 3 flights after 20 minutes upon player aircraft entering a zone. But I want to add another element of randomness, I want to make that 20 minutes more random, with 3 different times 20, 40 and 60 minutes, but my small brain has reached it's limits to add triggers now. 

I understand I have to put a trigger somewhere between the zone trigger when the aircraft enters the zone and one of the 3 flights getting activated.

But as I said, now I'm lost in the woods of the triggers. 

 

Any help?

 EDIT Can I simply add "or" to the trigger so "time since flag 1200" or "time since flag 2400" or "time since flag 3600"

Edited by Gunfreak

i7 13700k @5.2ghz, GTX 5090 OC, 128Gig ram 4800mhz DDR5, M2 drive.

Posted

Just copy the one that activates the group after 20 minutes and change it to 40 and 60 minutes with activation of different groups.

When you add the "or" between the triggers, nothing will change as the "time since flag 1200" will be reached first in any case.

Posted
15 hours ago, razo+r said:

Just copy the one that activates the group after 20 minutes and change it to 40 and 60 minutes with activation of different groups.

When you add the "or" between the triggers, nothing will change as the "time since flag 1200" will be reached first in any case.

But I only want 1 activation of 1 group. Not all 3 at different times.

i7 13700k @5.2ghz, GTX 5090 OC, 128Gig ram 4800mhz DDR5, M2 drive.

Posted
On 10/13/2025 at 12:38 PM, Gunfreak said:

EDIT Can I simply add "or" to the trigger so "time since flag 1200" or "time since flag 2400" or "time since flag 3600"

Yes. Let's say Flag 3 is for a random value between 1 and 3 inclusive. Set that on a Mission Start event.

Then for the Condition of the aircraft start/activation you do this:

TSF xx 1200

Flag 3 = 1

OR

TSF xx 2400

Flag 3 = 2

OR

TSF 3600

Flag 3 = 3

Is that what you are looking for?

 

WC's Flags.txt

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

  • Recently Browsing   0 members

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