Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions addons/vehicles/functions/fnc_autoThrottle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ if (!_preserveSpeedLimit) then {

private _currentThrottle = (airplaneThrottle _vehicle) ^ _throttleLogValue;
if (_lastThrottleValue != -1 && { EPSILON < abs (_currentThrottle - _lastThrottleValue) }) then {
if (dialog) exitWith { // setAirplaneThrottle changes won't be respected when in a dialog and would force an exit
_args set [3, -1]; // reset so it can restart when dialog closed
};
// player/script has moved throttle, stop limiting speed
// ARMA will allow an increment of one throttle unit per frame, so if there is a difference between our known throttle value and actual throttle value, the player must of changed it
[localize LSTRING(Off)] call EFUNC(common,displayTextStructured);
Expand Down