Write SimVar
msfs_set_simvarWrite a value to a settable SimVar in Microsoft Flight Simulator, returning a specific error if the sim rejects the write. Check settability first with msfs_search_simvars.
Instructions
Write a value to a settable SimVar.
Fails with a specific error if the sim rejects the write, rather than reporting success. Check the 'settable' flag with msfs_search_simvars first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | SimVar name; must be settable | |
| unit | No | Unit the value is expressed in. Defaults to the catalog unit. | |
| index | No | Index for indexed SimVars. Index 0 is valid. | |
| value | Yes | Value to write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |