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 12-09-2012, 11:03 AM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

This is what I have

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

public class Mission : AMission
{

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

        GamePlay.gpHUDLogCenter("Welcome to TP Night");



    }



    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        if ("WinCondition1".Equals(shortName) && active)
        {
            GamePlay.gpHUDLogCenter("Mission Success !");
            GamePlay.gpGetTrigger(shortName).Enable = false;


        }
    }





     private void setMainMenu(Player player)
    {
        GamePlay.gpSetOrderMissionMenu(player, false, 0, new string[] { "Start Airgroup Engines" }, new bool[] { true });
    }

    public override void OnOrderMissionMenuSelected(Player player, int ID, int menuItemIndex)
    {
        base.OnOrderMissionMenuSelected(player, ID, menuItemIndex);

        if (ID == 0) // main menu
        {
            if (menuItemIndex == 1)  // Start Airgroup Engines
            {
                GamePlay.gpLogServer(null, "Start Engines", null); // Controlmessage
                GamePlay.gpPlayer().Place().Group().Idle = false;
            }
        }
    }


    public override void Inited()
    {
        setMainMenu(GamePlay.gpPlayer());
    }
    
    
    public override void OnBattleStarted()
    {
        base.OnBattleStarted();

        MissionNumberListener = -1;

        GamePlay.gpPlayer().Place().Group().Idle = true;
    }
}
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 11:54 PM.


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