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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2012, 02:55 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

the action is only activated if the trigger is triggered, you can also place it outside if you like.

Quote:
Also deactivating trigger means to disable theme for good or after they invoked?
All other triggers are deactivated after activation, exept TGroupDestroyed is also deaktivated if the group reached the last waypoint. TPassThru is not deaktivated after activation so you must do it via script.
In my case above the passthru tigger must be activated once. But you can disable a trigger at any time. For example you have two condition one win and one fail.
Maybe the win condition is to destroy groundtargets and you use a TGroundDestroy trigger and the fail condition you must make it before the time is over. To avoid the activation of the second trigger you can disable it.
Example:
Code:
    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);


        if (shortName.Equals("TimerTriggerName"))
        {
            GamePlay.gpHUDLogCenter("You failed Time is over");
            GamePlay.gpGetTrigger("GroundDestroyed").Enable = false;
        }

        if (shortName.Equals("GroundDestroyed"))
        {
            GamePlay.gpHUDLogCenter("You win you destroyed the Groundtargets");
            GamePlay.gpGetTrigger("TimerTriggerName").Enable = false;

        }
    }

Last edited by FG28_Kodiak; 11-07-2012 at 03:00 PM.
Reply With Quote
  #2  
Old 11-09-2012, 07:32 AM
Osprey's Avatar
Osprey Osprey is offline
Approved Member
 
Join Date: Jan 2010
Location: Gloucestershire, England
Posts: 1,264
Default

Gruber, the script that I emailed you had pass through events triggering successfully. Did this not work?
Reply With Quote
Reply


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 11:59 PM.


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