Write L-Var
msfs_set_lvarSet an L-var value on the current MSFS aircraft and verify it was applied. Uses native SimConnect to support proprietary aircraft like Fenix without MobiFlight.
Instructions
Write a value to an L-var on the current aircraft.
Uses native SimConnect data definitions (AddToDataDefinition + SetDataOnSimObject), which works with proprietary aircraft like the Fenix A320/A321. Does NOT require MobiFlight and does NOT use the MobiFlight RPN set() command.
Reads the variable back afterwards and reports 'verified': true if the value landed, false if it did not, null if the read-back could not be completed. A false or null is never reported as success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | L-var name; the 'L:' prefix is optional | |
| value | Yes | Numeric value to write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |