mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix being stuck dragging when in combat pace (#7617)
This commit is contained in:
parent
1f20047410
commit
54086bb2ef
@ -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];
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user