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
  #7  
Old 03-28-2012, 10:34 PM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default

Yes I over come this problem a while back. But I was not getting the second "obective complete" because I was spawning my groups off a ttime and the trigger for the groups was already triggered. You have to hard code the spawn not have it in the Mis file. Well this works for me anyway.

Code:
  if ("BG2_1".Equals(shortName) && active) //name of the Ttime spawn [trigger]
        {
            AiAction action = GamePlay.gpGetAction("BGSpawn2_1");  //name of the [action] spawn
            if (action != null)
            {
                action.Do();
            }


            GamePlay.gpGetTrigger(shortName).Enable = false;

            //Added section to generate new trigger
            ISectionFile f = GamePlay.gpCreateSectionFile();
            string sect = "Trigger";  //dont touch
            string key = "Trigger name  here"; //put tgroupDestroy [Trigger] name  here
            string value = " TGroupDestroyed BoB_LW_KuFlGr_606.02 50"; //just add the flight or chief name here
            f.add(sect, key, value);
            GamePlay.gpPostMissionLoad(f);
        }
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
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 08:29 AM.


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