Fix being stuck dragging when in combat pace (#7617)

This commit is contained in:
BaerMitUmlaut 2020-04-04 01:28:14 +02:00 committed by GitHub
parent 1f20047410
commit 54086bb2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,9 @@ GVAR(currentHeightChange) = 0;
// prevent UAVs from firing
private _UAVCrew = _target call EFUNC(common,getVehicleUAVCrew);
// fixes not being able to move when in combat pace
[_unit, "forceWalk", "ACE_dragging", true] call EFUNC(common,statusEffect_set);
if !(_UAVCrew isEqualTo []) then {
{_target deleteVehicleCrew _x} count _UAVCrew;
_target setVariable [QGVAR(isUAV), true, true];

View File

@ -77,6 +77,9 @@ if (_target getVariable [QGVAR(isUAV), false]) then {
createVehicleCrew _target;
};
// fixes not being able to move when in combat pace
[_unit, "forceWalk", "ACE_dragging", false] call EFUNC(common,statusEffect_set);
// reset mass
private _mass = _target getVariable [QGVAR(originalMass), 0];