The begin
event fires when activation of a command begins. This is the proper way to run code in response to discrete input event.
The event uses the CommandEvent
object, with the phase set to "begin"
.
> ident = "sim/transponder/transponder_ident"
Command
> "begin",
undefined
>
Received command event with phase begin
undefined
>
undefined
xplm_FlightLoop_Phase_AfterFlightModel
callback that triggers this event.replace_command()
and wrap_command()
functions are the equivalents to this event.