msfs.event_sender()
msfs.event_sender(event_name[, param1[, param2[, param3[, param4[, param5]]]])
This function creates a native-action to send a SimConnect client Event ID to the Microsoft Flight Simulator.
Note
This function is recommended to be replaced with msfs.mfwasm.rpn_executer()
. It provides greater flexibility for specifying operations, and allows for operations that cannot be achieved with Event ID.
Parameters
Parameter | Type | Description |
---|---|---|
event_name | string | Event ID |
param1 | number | 1st parameter of the event. |
param2 | number | 2nd parameter of the event. |
param3 | number | 3rd parameter of the event. |
param4 | number | 4th parameter of the event. |
param5 | number | 5th parameter of the event. |
Return Values
This function returns a native-action.