airplaneThrottle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(wrong description)
m (Some wiki formatting)
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________
 
|arma3dev|= 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]] - |= Parameter 1
 
|p2=  |= Parameter 2
|p1= airplane: [[Object]]
|p3=  |= Parameter 3
 
|p4= |= Parameter 4
|r1= [[Number]]
|p5=  |= Parameter 5
 
|p6=  |= Parameter 6
|x1= <code>[[private]] _throttle = [[airplaneThrottle]] [[objectParent]] [[player]];</code>
| [[Number]] |= Return Value
 
|x1= <code>_trottle = '''airplaneThrottle''' myPlane </code> |= Example 1
|seealso= [[setAirplaneThrottle]]
| - |= See Also
}}
}}


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


<h3 style='display:none'>Bottom Section</h3>
<code>[[vehicle]] [[player]] [[setAirplaneThrottle]] 0.5;
<!-- Appropriate categories go here -->
[[airplaneThrottle]] [[vehicle]] [[player]]; {{cc|0.793701 if the value is 3}}
[[airplaneThrottle]] [[vehicle]] [[player]]^([[getNumber]] ([[configFile]] >> "CfgVehicles" >> [[typeOf]] [[vehicle]] [[player]] >> "throttleToThrustLogFactor")); {{cc|0.5}}
</code>
</dd>


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
</dl>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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