Jump to content

Recommended Posts

Posted

Eh guys- I'll keep it short...

 

Basically I'm looking at a time since flag trigger on a switched condition... so the flag will turn on and off.

 

The setup is if a unit goes above a certain altitude the flag is on... and at a random time (5% continuous) I have SAM AI on. But I don't want it to stay on. I want to leave it on when guys are above altitude and then turn it off a few minutes after they get below.

 

My concern is that the time since flag trigger will keep counting from the first time the flag is activated... as opposed to each subsequent activation (assuming more than 1 person will go over altitude 1 time...)

 

Thoughts?

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

I think the time since flag counter gets reset if a subsequent condition sets the same flag again.

 

For instance

1. Condition sets flag 1

2. Time since flag 1 condition is checked

 

If flag 1 condition happens again sometime later and before condition 2 timeout then condition 2 only happens when the condition is actually true so the last time flag 1 was set will determine condition 2's outcome.

F-15C-User-Bar-ACM.v2.jpg

MapleFlagMissions - Read Our Blog for Updates

Posted (edited)

Trigger:

Missionstart "Pre-Condition"

Condition:

*empty*

Action:

Group A.I. OFF - SAM

Flag ON - 1

 

SAM is default deactivated and the Flag is ON

 

 

 

 

Trigger:

Switched Condition "Client high"

Condition:

Unit altetude higher than - xxx m - client 1

[OR]

Unit altetude higher than - xxx m - client 2

[OR]

Unit altetude higher than - xxx m - client 3

Action:

Flag OFF - 1

 

If only one clients altetude is higher than allowed the Flag gets OFF

 

 

 

 

Trigger:

Switched Condition "Client low"

Condition:

Unit altetude lower than - xxx m - client 1

Unit altetude lower than - xxx m - client 2

Unit altetude lower than - xxx m - client 3

Action:

Flag ON - 1

 

Only if all clients altetude is low the flag is ON again.

 

 

 

 

Trigger:

Switched Condition "SAM ON"

Condition:

Flag is false - 1

Action:

Group A.I. ON - SAM

 

If the flag is OFF the SAM is active.

 

 

 

 

Trigger:

Switched Condition "SAM OFF"

Condition:

Time since Flag - 1 - 5min

Action:

Group A.I. OFF - SAM

 

If the flag is ON for 5min the SAM is deactive again.

Edited by =STP= Dragon
  • Like 2
  • Recently Browsing   0 members

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