airplaneThrottle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________
 
|arma3|= Game
|game1= arma3
|1.70|Game Version=
|version1= 1.70
|arg=  |Multiplayer Arguments=
 
|eff=  |Multiplayer Effects=
|gr1= Object Manipulation
____________________________________________________________________________________________
 
| Returns throttle position. Works only on player's vehicle.|DESCRIPTION=
|descr= Returns throttle position. Works only on player's vehicle.
____________________________________________________________________________________________
 
| '''airplaneThrottle''' airplane |SYNTAX=
|s1= [[airplaneThrottle]] airplane
|p1= airplane: [[Object]] - |PARAMETER1=
 
|p2=  |PARAMETER2=
|p1= airplane: [[Object]]
|p3=  |PARAMETER3=
|p4=  |PARAMETER4=
|p5=  |PARAMETER5=
|p6=  |PARAMETER6=
| [[Number]]  |RETURNVALUE=
|x1= <code>_trottle = '''airplaneThrottle''' myPlane </code> |EXAMPLE1=
| [[setAirplaneThrottle]] |SEEALSO=
}}


<dl class='command_description'>
|r1= [[Number]]
<!-- BEGIN Note Section -->
<!-- For example:
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] Leave it here for others to read; };</code></dd>
-->
<!-- END Note Section -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
|x1= <sqf>private _throttle = airplaneThrottle objectParent player;</sqf>
<!-- Appropriate categories go here -->


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|seealso= [[setAirplaneThrottle]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}


{{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 22:12, 7 May 2022

Hover & click on the images for description

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:
private _throttle = airplaneThrottle objectParent player;

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
POLPOX - c
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.
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