How about this?
Code:
using System;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;
using maddox.GP;
public class Mission : AMission
{
public override void OnBattleStarted()
{
GamePlay.gpHUDLogCenter("runs");
}
public override void OnActorDead(int missionNumber, string shortName, AiActor actor, List<DamagerScore> initiatorList)
{
if (actor is AiAircraft)
{
string type = ((AiAircraft)actor).InternalTypeName();
GamePlay.gpLogServer(type.Substring(type.IndexOf(".", 0, 0)));
}
}
}
Bookmarks