From f1a161f9ea06fc84bdcf31e05db943b03b1270fd Mon Sep 17 00:00:00 2001 From: SilenceIsFatto <78276788+SilenceIsFatto@users.noreply.github.com> Date: Fri, 30 Aug 2024 13:52:15 +0100 Subject: [PATCH] change lock alive check --- A3A/addons/ultimate/functions/vehicles/fn_setLock.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3A/addons/ultimate/functions/vehicles/fn_setLock.sqf b/A3A/addons/ultimate/functions/vehicles/fn_setLock.sqf index 6e03621305..eaa118fa50 100644 --- a/A3A/addons/ultimate/functions/vehicles/fn_setLock.sqf +++ b/A3A/addons/ultimate/functions/vehicles/fn_setLock.sqf @@ -22,7 +22,7 @@ params [ ]; if (_vehicle isEqualTo ObjNull || {isNil "_vehicle"}) exitWith {false}; -if (!(alive) _vehicle) exitWith {false}; +if (alive _vehicle isEqualTo false) exitWith {false}; _vehicle lock _state;