airplaneThrottle: Difference between revisions
| No edit summary |  (Added a note by manual, the “Add New Note” button isn't working so fix is needed...) | ||
| Line 37: | Line 37: | ||
| [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
| <!-- CONTINUE Notes --> | |||
| <dl class="command_description"> | |||
| <dd class="notedate">Posted on 10:18, 4 January 2020 (CET)</dd> | |||
| <dt class="note">[[User:POLPOX|POLPOX]]</dt> | |||
| <dd class="note"> | |||
| 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. | |||
| <code>[[vehicle]] [[player]] [[setAirplaneThrottle]] 0.5; | |||
| [[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> | |||
| </dl> | |||
Revision as of 10:18, 4 January 2020
Description
- Description:
- Returns throttle position. Works only on player's vehicle.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
- _trottle = airplaneThrottle myPlane
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
Bottom Section
- 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
 
	