Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #31  
Old 10-17-2011, 09:29 AM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

No, that works, but you have to clear the trigger again, after it was triggered.

If you have the following for the trigger:
Code:
 if (("RedIntercept1".Equals(shortName) && active) && (CountAIAirplanes(1) <= maxRedAI)) 
          { 
                AiAction action = GamePlay.gpGetAction("RedIntercept1");
                if (action != null)
			MissionTimer1Int.Restart();
			MissionTimer1IntA.Start();			
			GamePlay.gpLogServer(null, "Intercept 1 triggered ", new object[] { }); //Testmeldung
                {
                     action.Do();
                }
                GamePlay.gpGetTrigger(shortName).Enable = false;            
          }
You can clear the trigger again by something like this:
Code:
if (MissionTimer1IntA.Elapsed.Minutes >= 30)   			//wieder freischalten des Triggers
    {
	GamePlay.gpGetTrigger("RedIntercept1").Enable = true; 
	MissionTimer1IntA.Reset();					
	GamePlay.gpLogServer(null, "Trigger 1 clear", new object[] { }); 		//Testmeldung
	}
__________________
http://cornedebrouwer.nl/cf48e
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.