Arma 3 Scripting

airplaneThrottle

  • Arma 3 v1.70

Command · Markdown · JSON · original wiki page

Description

Returns throttle position. Works only on player's vehicle.

Syntax

airplaneThrottle airplane

Parameters:

Returns: Number

Examples

Example 1

private _throttle = airplaneThrottle objectParent player;

See also

setAirplaneThrottle

Community notes

POLPOX

The value that set by setAirplaneThrottle =/= the value that can be get by airplaneThrottle when the plane's config throttleToThrustLogFactor isn't 1.
There're two planes in Vanilla Arma 3 that the value isn't 1, which are V-44 Blackfish and Y-32 Xi'an.

vehicle player setAirplaneThrottle 0.5;
airplaneThrottle vehicle player;    // 0.793701 if the value is 3
airplaneThrottle vehicle player^(getNumber (configFile >> "CfgVehicles" >> typeOf vehicle player >> "throttleToThrustLogFactor"));    // 0.5