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-21-2012, 04:04 AM
Aussie Pilot Aussie Pilot is offline
Approved Member
 
Join Date: Nov 2011
Location: Brisbane, Australia
Posts: 27
Default

Thanks Salmo, also noticed that even though the text shows up in the mission file when i look at it in my documents folder via notepad, when i go back into FMB it is no longer there in the script window box.

Whats with that? is it because I did it wrong despite saving it.

Edit: I have also just found out my naming may be wrong. I had a space between name words, I see you used an underscore, so i'll give that a try as well.

It's the little things aye.

Last edited by Aussie Pilot; 11-21-2012 at 04:08 AM.
Reply With Quote
  #2  
Old 11-21-2012, 04:40 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

You can use a script:

Code:
using System;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;


public class Mission : AMission
{

    public override void OnBattleStarted()
    {
        base.OnBattleStarted();

        MissionNumberListener = -1;
    }


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


        GamePlay.gpLogServer(null, "Trigger: {0} activated", new object[]{shortName}); // for testing remove if not longer needed


        if (shortName.Equals("PlaneSpawnTrigger")) // insert the triggername between the ""
        {
            AiAction action = GamePlay.gpGetAction("SpawnAirgroup1"); // insert the actionname between the ""

            if (action != null)
                action.Do();

            action = GamePlay.gpGetAction("SpawnAirgroup2"); // insert the actionname between the ""

            if (action != null)
                action.Do();
        }
        else 
        {
            AiAction action = GamePlay.gpGetAction(shortName);

            if (action != null)
                action.Do();
        }

    }
   

}
Reply With Quote
Reply

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 12:00 AM.


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