Jump to content

Recommended Posts

Posted

Afternoon all. I am trying to set up a mission so that when the tanker RTB with bingo fuel it triggers the 2nd tanker to start but i cant find a reliable way of doing so. I know i can put a trigger zone where the tanker lands but what i want is for the second tanker to take off before the 1st lands if you know what i mean?

Any ideas on how i could go about it?

Posted (edited)

You'll have to write some code.

 

You can use the getFuel function to determine when the tanker is bingo (just run this every fuel seconds and send a message containing the value to determine what value causes the tanker RTB)

 

 

Once you've determined the bingo value for the tanker, you can run a script to look for that value, and then set a flag true when the bingo value is reached.

 

 

You can then program a standard start in the GUI; whenever the RTB flag goes true, you can launch the second tanker.

Edited by feefifofum
Posted
If you're looking for a simpler solution you could simply place a zone around the tanker's orbit, set a flag true when the tanker enters it, and check for UNIT OUTSIDE ZONE combined with FLAG IS TRUE to know when the tanker has left the area.

 

Ahh ok... i will try that... Thanks bud

  • Recently Browsing   0 members

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