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
  #4  
Old 08-10-2013, 02:03 PM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

ok, new modem and I have internet

you need to have something like this example with 4 triggers in
Code:
  
using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;

public class Mission : AMission
{
      public override void OnTrigger(int missionNumber, string shortName, bool active) 
        {
       base.OnTrigger(missionNumber, shortName, active); 

          if ("41".Equals(shortName) && active) 
          { 
                AiAction action = GamePlay.gpGetAction("41");
                if (action != null)
                {
                     action.Do();
                }
                GamePlay.gpHUDLogCenter("41");      
                GamePlay.gpGetTrigger(shortName).Enable = false;            
          }
		  
		if ("46".Equals(shortName) && active) 
          { 
                AiAction action = GamePlay.gpGetAction("46");
                if (action != null)
                {
                     action.Do();
                }
                GamePlay.gpHUDLogCenter("46");      
                GamePlay.gpGetTrigger(shortName).Enable = false;   
    }
	if ("605".Equals(shortName) && active) 
          { 
                AiAction action = GamePlay.gpGetAction("605");
                if (action != null)
                {
                     action.Do();
                }
                GamePlay.gpHUDLogCenter("605");      
                GamePlay.gpGetTrigger(shortName).Enable = false;            
          }
	
		  
	
	if (GamePlay.gpGetTrigger("mis").Active) {
        end = true;
        //GamePlay.gpHUDLogCenter("!");
    }
}
}
basically rename this as your mission name and change the trigger names should get you going- you can then change the HudLog messages to server messages if you wish.

I don't think I've made any errors but I haven't tested this, just cut out a trigger section from one of my campaigns and plugged it into the structure you gave (Amission etc)

good luck
Reply With Quote
 

Thread Tools
Display Modes

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 02:32 PM.


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