View Single Post
  #2  
Old 04-25-2014, 08:44 AM
theOden theOden is offline
Approved Member
 
Join Date: May 2011
Location: Sweden
Posts: 221
Default

hmm I had issues with this one before but got it working after removing code that deletes all "editor placed planes" if served in multiplayer.

Now on the other hand (TF4.312) I get the behaviour you describe (I guess I was TF4.3 last time).

Simple mission on Steppe having "Birthplaces" and one single in editor Hurricane (=player) with this code only:

Quote:
using System;
using System.Collections;
using maddox.game;
using maddox.game.world;
using maddox.GP;

public class Mission : AMission
{
// Public Overrides //
public override void OnAircraftTookOff(int missionNumber, string shortName, AiAircraft aircraft)
{
base.OnAircraftTookOff(missionNumber, shortName, aircraft);

GamePlay.gpHUDLogCenter("OnAircraftTookOff " + shortName + " as " + aircraft.InternalTypeName());
GamePlay.gpLogServer(null, "OnAircraftTookOff {0} as {1}", new object[] { shortName, aircraft.InternalTypeName() });
}

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

GamePlay.gpHUDLogCenter("OnAircraftLanded " + shortName + " as " + aircraft.InternalTypeName());
GamePlay.gpLogServer(null, "OnAircraftLanded {0} as {1}", new object[] { shortName, aircraft.InternalTypeName() });
//Timeout(150, () => { if (aircraft != null) aircraft.Destroy(); });
}
}
Weird but I'll try to dig some more.

Edit:
Just tried my little Steppe-mission without TF-patch (vanilla 1.11 that is) and I get the very same behaviour - only editor placed planes trigger this.
__________________

Last edited by theOden; 04-27-2014 at 06:44 AM.
Reply With Quote