From ce8eb36019869422a20616c0927fea487a26f8e0 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 21 Nov 2024 20:37:36 -0600 Subject: [PATCH] Vehicle Lock - Don't automatically lock UAVs (#10518) Fix #10456 --- addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf b/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf index 08cc150a3c7..cd245119caa 100644 --- a/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf +++ b/addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf @@ -20,6 +20,7 @@ params ["_vehicle"]; TRACE_1("handleVehicleInitPost",_vehicle); if (alive _vehicle) then { + if (unitIsUAV _vehicle) exitWith {}; // ignore UAVs //set lock state (eliminates the ambigious 1-"Default" and 3-"Locked for Player" states) private _lock = switch (GVAR(VehicleStartingLockState)) do { case 0: {locked _vehicle in [2, 3]};