Skip to content

Commit

Permalink
Vehicle Lock - Don't automatically lock UAVs (#10518)
Browse files Browse the repository at this point in the history
Fix #10456
  • Loading branch information
PabstMirror authored Nov 22, 2024
1 parent bcd026e commit ce8eb36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/vehiclelock/functions/fnc_handleVehicleInitPost.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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]};
Expand Down

0 comments on commit ce8eb36

Please sign in to comment.