Thread: Hud Message
View Single Post
  #2  
Old 01-21-2013, 10:34 AM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Anybody point me in the right direction..................Still get an error at the end of the GamePlay.gpHUDLogCenter line ?
How do I end that line ?


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

public class Mission : maddox.game.AMission
{

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

        if (aircraft != null && damagedAircrafts.Exists(element => element == aircraft))
        {
            GamePlay.gpHUDLogCenter(null, "{0} Shot Down" + planeType +");
        }
    }
}
Reply With Quote