Hello,
i have question about mission editor, triggers and flags etc.
1- I want to play a sound file (Im defending), if SAM shoots me a missile.
I did it with (missile in triggers zone) and as action (Sound at coalition). Here i have no problem.
2- But if SAM shoots me again within 120 seconds after the first shot, i want to play
another sound (Im defending again!) and check for next 120 seconds too, if the third missile comes to me. If yes then then plays second sound (Im defending again), like a loop!
3- But if after the second or third shot, no SAM shoots at me for 180 seconds, the sound must go back to first sound (Im defending), if any SAM shoots me .
I know to use (missile in trigger zone) or (flag on). But i dont know how to add a timer to that first shot as condition for second or third shot in the next120 seconds after first shot and make it a loop. After 180 seconds stop the loop and set the program to play that first sound (Im defending) again, like first shot from SAM.
I need somehow a timer to check the condition 1 for certain time and play the second Action, if its true. After that run the second action as long as it happens within 120 seconds like a Loop. If the time out of 120 seconds, it must back to first condition and first action.
I appreciate any idea and thanks in advance