Fi gauge command

From Sim Innovations Wiki
Jump to navigation Jump to search

Description

fi_gauge_command(fi_gauge_id, command_name)

fi_gauge_command is used to send a command for a Flight Illusion gauge. Available properties depend on the gauge type.

See Flight Illusion Gauges for available commands.

Return value

This function won't return a value.

Arguments

# Argument Type Description
1 fi_gauge_id String Reference to the Flight Illusion gauge.
2 command_name String Command name which need to be set. See Flight Illusion Gauges for available commands.

Example

-- Gauge type is a single needle
fi_gauge = fi_gauge_add(12, "BENDIX_KING_AUTOPILOT")

-- Turn off autopilot
fi_gauge_command(fi_gauge, "AUTOPILOT_OFF")