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
  #2  
Old 09-13-2011, 09:28 PM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

I am currently trying to use the OnAircraftTookOff Methode, but it doesn´t seem to work on a dedicated server. Did you try a dedicated server and if so, what code did you use?

I tried the following:

Code:
	
	public override void OnAircraftTookOff(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftTookOff(missionNumber, shortName, aircraft);

        if (GamePlay.gpPlayer().Place() != aircraft)
            return;
        
        switch (aircraft.Army())
              {                
                case 1:
                    if (aircraft.Type() == AircraftType.Bomber || aircraft.Type().ToString().Equals("Bomber, DiveBomber"))       //rote spieler
                    { 
                        GamePlay.gpHUDLogCenter(new Player[] {GamePlay.gpPlayer() }, "Fly a reccon to LeHavre (AN4)"); 
                    }        
                    else 
                    {
                        GamePlay.gpHUDLogCenter(new Player[] {GamePlay.gpPlayer() }, "Cover our shipping south of Isle of White (AD17)"); 
                    }    
                break;
                
                case 2:
                if (aircraft.Type() == AircraftType.Bomber || aircraft.Type().ToString().Equals("Bomber, DiveBomber"))           //blaue Spieler
                    { 
                        GamePlay.gpHUDLogCenter(new Player[] {GamePlay.gpPlayer() }, "Attack britisch shipping south of Isle of White - AD17"); 
                    }        
                    else 
                    {
                        GamePlay.gpHUDLogCenter(new Player[] {GamePlay.gpPlayer() }, "Escort Ju87 from AC6 to AE15. Stukas leave AC6 after 15mins into mission!"); 
                    }    
                    break;
            }
	}
__________________
http://cornedebrouwer.nl/cf48e
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 10:40 AM.


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