Jump to content

Mission building question : How to have a trigger execute periodically


Recommended Posts

Posted

Hi, mission building noob here :)

 

I'm trying to figure something out, tried to quickly search the forum but couldn't find an answer either.

 

What I want to achieve is, have some of the triggers execute every x minutes.

 

I have tried to use trigger type "continous action", set two conditions : 1 : time more (10), 2 : if a particular building is still alive. If these are true, a script would run. But apparently this doesn't mean to check conditions and run the script every 10 seconds as I assumed, and once it validates after first 10 seconds of mission, it will start to execute the script continously.

 

How do I make it check the conditions every x minutes or seconds before running an action?

Wishlist: F-4E Block 53 +, MiG-27K, Su-17M3 or M4, AH-1F or W circa 80s or early 90s, J35 Draken, Kfir C7, Mirage III/V

DCS-Dismounts Script

Posted

Hello!

You can use this :

 

Once / Time more than 5 seconds / Flag On No1

 

then

 

Switched Condition / Time since flag No 1 is 300 seconds / .......(Whatever you like) & Flag OFF No1 & Flag ON No1

 

The above will work like this.

When mission will reach the 5th second it will turn the Flag number 1. Then it will wait until 5 minutes will pass since the Flag activation and will do whatever trigger you will choose. In the same trigger you have to set the Flag to OFF and then again to ON. That will make the trigger work again when another 5 minutes will pass. You have to do this as the Switched condition feature works if the condition was true and then false again.

  • Like 1

"ARGO" DCS UH-1H DLC SP Campaign

373vFS DCS World squadron (Greece) - www.buddyspike.net

"ARGO 2.0 Project Phoenix" UH-1H DLC Campaign - WIP

Posted

FYI, you don't need to set the flag to off and then back on. Just use Flag On and that will restart the timer.

 

WC

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.

Posted

i also have a mission builder question

i would like someone to set up the following for me please

sample.miz file please

1 enemy ground unit

1 friendly ground unit (humvee with fac ability)

1 friendly Huey

 

what i need is the humvee to transmit via radio the position of the nemy unit.

 

i have managed to get the f10 line in my coms but i can not for the life of me get it to work. the f10 is blacker than the rest of the com commands. there is clearly a problem here....

the huey must be able to receive this kind of info from a fac / jtac

  • Recently Browsing   0 members

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