ENO Posted May 15, 2013 Posted May 15, 2013 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
Sabre-TLA Posted May 15, 2013 Posted May 15, 2013 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. MapleFlagMissions - Read Our Blog for Updates
STP Dragon Posted May 15, 2013 Posted May 15, 2013 (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 May 15, 2013 by =STP= Dragon 2 Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
ENO Posted May 15, 2013 Author Posted May 15, 2013 Thanks you two. So what I'm getting is it will start counting down from the most recent activation. Dragon-thanks for the elaborate answer! "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Recommended Posts