Jump to content

Recommended Posts

Posted

How do I configure a trigger that will display a message every 30s, while the conditions are all met

I have a repeating trigger that displays a message to the pilot when the pilot is over 500' AGL, FLAG 51 is False and the Pilot is within a trigger zone.

How can I set it such that it will delay for a specific amount, say 30s, before showing the message again, I don't want it display the message, and the immediately again, and again, filling up all the message space with a constant flow of lines. I would like it to display for say 10s, disappear for 20s, display for 10s and so on until such time as the conditions are not met (Player reduces altitude)

Thank you

Toni  

Toni Carrera (Ice Rhino)

 

ThrustMaster HOTAS Warthog Throttle & A10C Stick, ThrustMaster F/A-18C Stick, ThrustMaster TFRP Pedals, ThrustMaster Cougars x 2, fitted to CubeSim USB Screens, TrackIR 4 Active LED & Cap Reflector, Stream Deck XL

Intel® Core™ i7-5820K 12 Core Processor, 32GB RAM, 1 x 500GB SSD, 2 x 256GB SSD, 1 x 1TB SSD 4 x 4TB Western Digital Mechanical. 2 x ASUS GTX 1080's SLI, ASUS 29" Ultrawide flanked by 2 x 22" IPS Monitors

Posted

First init the repeated flag:

MISSION START > no condition > FLAG 52 is TRUE

then, repeat the check every 30 seconds:

SWITCHED CONDITION > Time since flag 52: 30 seconds/pilot is over 500' AGL/ FLAG 51 is False / Pilot is within a trigger zone > SHOW MESSAGE: 'SOME MESSAGE" for 10 seconds/FLAG 52 is FALSE/FLAG 52 is TRUE

So, let me explain: 

- when you start the mission, you initialize Flag 52, so the switched condition will know when 30 seconds have passed

- then, if all your conditions are true and time since Flag 52 is 30 seconds, a message will be displayed, then, this is the tricky part, we gonna reset the Flag 52 (set it false) and reinitialize it (Flag 52 is true).

After 30 seconds, time since flag 52 condition will be true again - the loop will stop if one of your conditions is false

Hope it helps 🙂

  • Recently Browsing   0 members

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