![]() |
How to get plane ID?
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 |
(actor as AiAircraft).TypedName() shows tactical Number of plane.
|
Quote:
|
Name is the actor name ingame.
TypedName is only the tactical number. Example: Code:
public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex) Name: 0:BoB_LW_LG2_I.000 TypedName: 1 + If the player use his own number, you will get this number. |
Thank you very much!
|
All times are GMT. The time now is 09:48 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.