![]() |
#1
|
|||
|
|||
![]()
Can someone supply the C# code to get the players airplane ID/serial no please.
[edit] I think I found it. Something like ... String acName = aircraft.InternalTypeName(); // Plane (Bf109E, etc) String callSign = aircraft.CallSign(); // Plane ID
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-21-2011 at 03:06 AM. |
#2
|
|||
|
|||
![]()
(actor as AiAircraft).TypedName() shows tactical Number of plane.
|
#3
|
|||
|
|||
![]()
What would be the difference with (actor as AiAircraft).Name() ?
|
#4
|
|||
|
|||
![]()
Name is the actor name ingame.
TypedName is only the tactical number. Example: Code:
public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex) { base.OnPlaceEnter(player, actor, placeIndex); GamePlay.gpLogServer(null, "Name: {0}", new object[] { (actor as AiAircraft).Name() }); GamePlay.gpLogServer(null, "TypedName: {0}", new object[] { (actor as AiAircraft).TypedName() }); } Name: 0:BoB_LW_LG2_I.000 TypedName: 1 + If the player use his own number, you will get this number. |
#5
|
|||
|
|||
![]()
Thank you very much!
|
![]() |
|
|