Thread: Hud Message
View Single Post
  #1  
Old 01-19-2013, 02:41 PM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default Hud Message

Trying to get a hud message to appear when an aircraft is destroyed but cant find the code to get a players name or the class he destroyed to display.

Tried a number of different ways to this but no joy .

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

        GamePlay.gpHUDLogCenter("?PlayerName? Destroyed + ?planeType?");

    }

}

Is there a way to get this to display?

Regards

Punch
Reply With Quote