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 09-26-2011, 11:35 AM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

cheers for this - looks useful- and the explanation even more so
Reply With Quote
  #2  
Old 12-07-2012, 08:23 PM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Hi Kodiak,
Do I need more code to get the communication menu. 4.Mission option to work?
I see it but it's greyed out .



On further exploration it works when used as a single script it's when I add it to a script already created it doesn't so I guess it's a problem with how I'm attaching it

Last edited by Punch_145; 12-09-2012 at 11:53 AM. Reason: Added
Reply With Quote
  #3  
Old 12-09-2012, 12:03 PM
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
  #4  
Old 12-09-2012, 02:46 PM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Sorted.................realized the "public override void OnBattleStarted()" section of your script needs to go in the section already created in my script .............
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 02:58 PM.


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