airplaneThrottle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style='display:none'>Bottom Section</h3>" to "")
m (Some wiki formatting)
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command
|arma3|= Game
 
|1.70
|game1= arma3
|arg=
|version1= 1.70
|eff=


|gr1= Object Manipulation
|gr1= Object Manipulation
| Returns throttle position. Works only on player's vehicle.
| '''airplaneThrottle''' airplane
|p1= airplane: [[Object]] -
| [[Number]]
|x1= <code>_trottle = '''airplaneThrottle''' myPlane </code>
| [[setAirplaneThrottle]]
}}


<dl class='command_description'>
|descr= Returns throttle position. Works only on player's vehicle.
<!-- BEGIN Note Section -->
 
<!-- For example:
|s1= [[airplaneThrottle]] airplane
<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>


|p1= airplane: [[Object]]


|r1= [[Number]]


{{GameCategory|arma3|Scripting Commands}}
|x1= <code>[[private]] _throttle = [[airplaneThrottle]] [[objectParent]] [[player]];</code>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
|seealso= [[setAirplaneThrottle]]
}}


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on 10:18, 4 January 2020 (CET)</dd>
<dd class="notedate">Posted on 10:18, 4 January 2020 (CET)</dd>
<dt class="note">[[User:POLPOX|POLPOX]]</dt>
<dt class="note">[[User:POLPOX|POLPOX]]</dt>
Line 43: Line 33:
</code>
</code>
</dd>
</dd>
</dl>
</dl>

Revision as of 01:47, 14 June 2021

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
Posted on 10:18, 4 January 2020 (CET)
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