The flightcrash event fires after the flight has crashed.
flightcrash
The dispatched event uses the Event interface.
Event
> simulator.addEventListener("flightcrash", (event) => { console.log("Flight has crashed!")}) undefined After flight model event
flight_crash()