Send PMDG Event
msfs_send_pmdg_eventSend PMDG SDK events to trigger cockpit switches, buttons, and knobs for PMDG 777 or 737 NG3. Use msfs_search_lvars() to find event names.
Instructions
Send a PMDG control event (777 or 737 NG3).
Triggers cockpit controls (switches, buttons, knobs) using the PMDG SDK event system. Use msfs_search_lvars() to find events — look for entries with an 'events' field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | Optional aircraft SDK variant. When omitted, the variant is detected from the loaded aircraft; if detection fails, the event name is looked up in both catalogs and the first match wins (PMDG 777 takes priority on ambiguity). | |
| parameter | No | Optional position value. For toggle switches, omit this. For selectors, pass the desired position (0, 1, 2, etc). | |
| event_name | Yes | PMDG event name (e.g., 'EVT_OH_ELEC_BATTERY_SWITCH'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |