The aircraftload
event fires when an aircraft has been loaded.
The dispatched event uses the AircraftLoadEvent
interface.
> "aircraftload",
undefined
Aircraft 0 loaded
Aircraft 1 loaded
Aircraft 2 loaded
aircraft_load()
callback is roughly equivalent to this event, with two caveats. First, XLua delays this event until an airport is loaded (source code); second, this event only fires for the user's aircraft (aircraft 0). JetScript fires this for every aircraft; you can check if the event is for the user's aircraft by checking event.user
.