airplaneThrottle: Difference between revisions
| m (template:command argument fix) | Lou Montana (talk | contribs)  m (Some wiki formatting) | ||
| (34 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| |arma3|=  | |game1= arma3 | ||
| |version1= 1.70 | |||
| | | |gr1= Object Manipulation | ||
| | Returns throttle position. Works only on player's vehicle. | |descr= Returns throttle position. Works only on player's vehicle. | ||
| |  | |s1= [[airplaneThrottle]] airplane | ||
| |p1= airplane: [[Object]]  | |||
| |p1= airplane: [[Object]] | |||
| | | |||
| |r1= [[Number]] | |||
| |x1= <sqf>private _throttle = airplaneThrottle objectParent player;</sqf> | |||
| |x1= < | |seealso= [[setAirplaneThrottle]] | ||
| |  | |||
| }} | }} | ||
| {{Note | |||
| |user= POLPOX | |||
| |timestamp= 20200104101800 | |||
| |text= The value that set by [[setAirplaneThrottle]] =/= the value that can be get by [[airplaneThrottle]] when the plane's config ''throttleToThrustLogFactor'' isn't 1.<br> | |||
| There're two planes in Vanilla {{arma3}} that the value isn't 1, which are V-44 Blackfish and Y-32 Xi'an. | |||
| < | |||
| -- | |||
| < | <sqf> | ||
| < | 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 | |||
| </sqf> | |||
| }} | |||
Latest revision as of 21:12, 7 May 2022
Description
- Description:
- Returns throttle position. Works only on player's vehicle.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- airplaneThrottle airplane
- Parameters:
- airplane: Object
- Return Value:
- Number
Examples
- Example 1:
Additional Information
- See also:
- setAirplaneThrottle
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
 Only post proven facts here! Add Note
- Posted on Jan 04, 2020 - 10:18 (UTC)
- 
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.
 
	