View Single Post
  #5  
Old 09-18-2011, 11:09 AM
FG28_Kodiak FG28_Kodiak is offline
Senior Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

@Klem

Quote:
Ataros has some links in his sig but many are translated German and leave me headscratching.
the germans are tutorials i made, but i think if i made them in english your head gonna to explode My english is very bad

There are three ways to get the plane Name:

In Game mouse rightclick then enable "show object names" then you can see the name of the plane in the plane list.

Or
Open the .mis file look for sections (for example):
[AirGroups]
BoB_RAF_F_141Sqn_Late.07
[BoB_RAF_F_141Sqn_Late.07]
Flight0 1 2 3 4
Flight1 11 12 13 14
Flight2 21 22 23 24

the Airgroup gets
0:BoB_RAF_F_141Sqn_Late.
and the postfix of the plane are are
Flight0: always counts from 000 to 00number of plane-1
so you can concat to:
0:BoB_RAF_F_141Sqn_Late.000
0:BoB_RAF_F_141Sqn_Late.001
0:BoB_RAF_F_141Sqn_Late.002
0:BoB_RAF_F_141Sqn_Late.003
Flight1: always counts from 010 to 01number of plane -1
0:BoB_RAF_F_141Sqn_Late.010
0:BoB_RAF_F_141Sqn_Late.011
0:BoB_RAF_F_141Sqn_Late.012
0:BoB_RAF_F_141Sqn_Late.013
Flight2: always counts from 020 to 02number of plane -1
0:BoB_RAF_F_141Sqn_Late.020
0:BoB_RAF_F_141Sqn_Late.021
0:BoB_RAF_F_141Sqn_Late.022
0:BoB_RAF_F_141Sqn_Late.023

or use a little script:
Code:
using System;
using maddox.game;
using maddox.game.world;


public class Mission : AMission
{

    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        GamePlay.gpLogServer(null, "Player: {0} enter Plane: {1}\n", new object[] { player.Name(), actor.Name() });
    }
}
So select the plane you like and enter it with ALT+F1
so you get a chat message like:
Server: Player: Kodiak enter Plane: 0:BoB_RAF_F_141Sqn_Late.000
Server: Player: Kodiak enter Plane: 0:BoB_RAF_F_141Sqn_Late.003
Server: Player: Kodiak enter Plane: 0:BoB_RAF_F_141Sqn_Late.010
etc.

you can enable the log in conf.ini, also, so you can easy open the log.txt after all and copy the planename from it and paste it to your script.

Last edited by FG28_Kodiak; 09-18-2011 at 11:15 AM.
Reply With Quote