Skip to content

Commit

Permalink
Fix rope redeploying without FRIES - fix #5686 (#6599)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas authored Sep 26, 2018
1 parent bd17d3f commit 70f11ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/fastroping/functions/fnc_cutRopes.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
} count _deployedRopes;

_vehicle setVariable [QGVAR(deployedRopes), [], true];
_vehicle setVariable [QGVAR(deploymentStage), 2, true];

// Set new state (0 if no FRIES, 2 if FRIES for manual stowing)
private _newState = [0, 2] select (isText (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(onCut)));
_vehicle setVariable [QGVAR(deploymentStage), _newState, true];

0 comments on commit 70f11ed

Please sign in to comment.