The AircraftLoadEvent object extends Event to represent an aircraft being loaded or unloaded by the simulator. The aircraft may be the user's aircraft or another aircraft.
If you use the same callback for load and unload events, you may need to check the event type (event.type) to see if this is an aircraft_load or aircraft_unload event.
In addition to the properties of Event:
AircraftLoadEvent.index: This is the aircraft index in X-Plane, an integer.AircraftLoadEvent.user: Indicates if the aircraft being loaded/unloaded is the user's aircraft (i.e., index 0). The value is true for the user's aircraft, or false otherwise.XPLM_MSG_PLANE_LOADED is the event triggering this callback.