View Single Post
  #8  
Old 06-01-2012, 09:07 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Simply add this script:
Code:
using maddox.game;
using maddox.game.world;
using part;

public class Mission : AMission
{

    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceEnter(player, actor, placeIndex);

        AiAircraft aircraft = actor as AiAircraft;
        if (aircraft != null)
        {
            GamePlay.gpLogServer(null, "Sprit: {0}", new object[]{ aircraft.getParameter(ParameterTypes.S_FuelReserve, -1)});
        }
    }
}
It shows the Current Fuel quantity of the plane you entered.

Ive tested the Heinkles with 50% Fuel - no problems in Game they have 50% Fuel.
Reply With Quote