Merge pull request #2680 from acemod/cargoLockedVeh

Disable loading into locked vehicles.
This commit is contained in:
Glowbal 2015-10-04 09:26:53 +02:00
commit 2c292af77e

View File

@ -31,4 +31,6 @@ if (_nearestVehicle isKindOf "Cargo_Base_F" || isNull _nearestVehicle) then {
if (isNull _nearestVehicle) exitWith {false};
if ((locked _nearestVehicle) >= 2) exitWith {false};
[_object, _nearestVehicle] call FUNC(canLoadItemIn)