before_flight_model Event

The beforeflightmodel event fires before the flight loop on every cycle; use this event to run any code that needs to run before the flight loop.

Event type

The dispatched event uses the Event interface.

Example

> simulator.addEventListener("beforeflightmodel", (event) => { console.log("Before flight model event")})
undefined
Before flight model event
Before flight model event
Before flight model event
Before flight model event
Before flight model event

References