Hi,
I've tried to incorporate Counter Triggers and Count Actions into a mission that I'm developing but I'm having problems. After landing at an airport I want to either give instructions to go on or fail the mission depending on the time taken.
I came across a reply to a post from April 2007 by Horst that seemed to provide a way to do what I wanted. I tried to adapt this to my needs but haven't been successful.
Here's what I have:
An activated Timer Trigger set to the desired time; a Counter Trigger (Start 0, Stop 2) which fails the mission, another Counter Trigger (Start 1, Stop 2) which allows the mission to go on, and several Count Actions.
When the Timer Trigger fires, a Count Action increments the Fail Counter Trigger and another Count Action decrements the Go on Counter Trigger. The Airport Landing Trigger increments both Counter Triggers as well as deactivating the Timer.
My understanding of this is: when the Airport Landing Trigger fires, if too much time has been taken the Fail Trigger Counter will be at count 2 and fire and the mission will fail; if the Timer has not fired the Proceed Trigger will be satisfied, the Timer will be stopped and the Mission will continue.
Here's what's happening: regardless of the time taken a Dialog Action tells me to proceed. If I hit Esc to Refly the mission and too much time has gone by the mission starts with a Mission Failed message. If I completely exit the mission and reselect it the mission failed message is still there. If I fly another mission and then reselect the problem mission it starts with the failed message. I have to restart FSX to not start with the Fail message. I've added a Dialog action to the Timer and it is firing.
Any and all ideas, suggestions appreciated.
Jim
I've tried to incorporate Counter Triggers and Count Actions into a mission that I'm developing but I'm having problems. After landing at an airport I want to either give instructions to go on or fail the mission depending on the time taken.
I came across a reply to a post from April 2007 by Horst that seemed to provide a way to do what I wanted. I tried to adapt this to my needs but haven't been successful.
Here's what I have:
An activated Timer Trigger set to the desired time; a Counter Trigger (Start 0, Stop 2) which fails the mission, another Counter Trigger (Start 1, Stop 2) which allows the mission to go on, and several Count Actions.
When the Timer Trigger fires, a Count Action increments the Fail Counter Trigger and another Count Action decrements the Go on Counter Trigger. The Airport Landing Trigger increments both Counter Triggers as well as deactivating the Timer.
My understanding of this is: when the Airport Landing Trigger fires, if too much time has been taken the Fail Trigger Counter will be at count 2 and fire and the mission will fail; if the Timer has not fired the Proceed Trigger will be satisfied, the Timer will be stopped and the Mission will continue.
Here's what's happening: regardless of the time taken a Dialog Action tells me to proceed. If I hit Esc to Refly the mission and too much time has gone by the mission starts with a Mission Failed message. If I completely exit the mission and reselect it the mission failed message is still there. If I fly another mission and then reselect the problem mission it starts with the failed message. I have to restart FSX to not start with the Fail message. I've added a Dialog action to the Timer and it is firing.
Any and all ideas, suggestions appreciated.
Jim



