This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
Use the Weather API to turn the simulator’s 3D thermals on or off and to check their current state.
set_3d_thermals()
Enable or disable 3D thermals.
SignatureTypeScript contract
set_3d_thermals(state: boolean): voidParameters
| Name | Type | Required | Description |
|---|---|---|---|
state | boolean | Yes | Desired 3D-thermals state. |
ExampleJavaScript
this.$api.weather.set_3d_thermals(true);Returns
voidNo direct return value is documented.get_3d_thermals()
Get the current 3D-thermals state.
SignatureTypeScript contract
get_3d_thermals(): booleanExampleJavaScript
const enabled = this.$api.weather.get_3d_thermals();
console.log(enabled);Returns
booleanWhether 3D thermals are enabled.