Fs2020 variable write

From Sim Innovations Wiki
Jump to navigation Jump to search

Description

fs2020_variable_write(variable, unit, value)

fs2020_variable_write is used write a variable to FS2020

Return value

This function won't return any value.

Arguments

# Argument Type Description
1 variable String Reference to a variable from Flight Simulator 2020
2 unit String Unit of the variable, can be found with the variable. Different units can be used for different variables. For example Hours, Knots and RPM.
3 value Number The value to be written

Examples

Write a standard FS2020 variable

-- Write false to variable "GENERAL ENG GENERATOR ACTIVE:1"
fs2020_variable_write("GENERAL ENG GENERATOR ACTIVE:1", "Bool", false)