mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix unconscious handlers run globally (#5504)
This commit is contained in:
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
|
if (!local _unit) exitWith {};
|
||||||
|
|
||||||
if (_unit getVariable [QGVAR(isDeploying), false]) then {
|
if (_unit getVariable [QGVAR(isDeploying), false]) then {
|
||||||
[_unit] call FUNC(deployCancel);
|
[_unit] call FUNC(deployCancel);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
|
if (!local _unit) exitWith {};
|
||||||
|
|
||||||
if (!isNull (GETMVAR(ladder,objNull)) && {GVAR(ladder) in attachedObjects _unit}) then {
|
if (!isNull (GETMVAR(ladder,objNull)) && {GVAR(ladder) in attachedObjects _unit}) then {
|
||||||
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy);
|
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
|
if (!local _unit) exitWith {};
|
||||||
|
|
||||||
if (_unit getVariable [QGVAR(isPlacing), false]) then {
|
if (_unit getVariable [QGVAR(isPlacing), false]) then {
|
||||||
[_unit] call FUNC(placeCancel);
|
[_unit] call FUNC(placeCancel);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
|
if (!local _unit) exitWith {};
|
||||||
|
|
||||||
if (_unit getVariable [QGVAR(adjusting), false]) then {
|
if (_unit getVariable [QGVAR(adjusting), false]) then {
|
||||||
_unit setVariable [QGVAR(adjusting), false, true];
|
_unit setVariable [QGVAR(adjusting), false, true];
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user