mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix vehicle lock lockpick condition, Fix lockpicking from inside (#4985)
This commit is contained in:
parent
d313d53b02
commit
43dc1f020e
@ -51,9 +51,11 @@ if (!([[_unit, _veh]] call _condition)) exitWith {false};
|
||||
|
||||
_returnValue = _funcType in ["canLockpick", "startLockpick", "finishLockpick"];
|
||||
switch (_funcType) do {
|
||||
case "canLockpick": {};
|
||||
case "canLockpick": {
|
||||
_returnValue = !([_unit, _veh] call FUNC(hasKeyForVehicle)) && {(locked _veh) in [2, 3]};
|
||||
};
|
||||
case "startLockpick": {
|
||||
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize LSTRING(Action_LockpickInUse)), _condition] call EFUNC(common,progressBar);
|
||||
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize LSTRING(Action_LockpickInUse)), _condition, ["isNotInside"]] call EFUNC(common,progressBar);
|
||||
};
|
||||
case "finishLockpick": {
|
||||
[QGVAR(setVehicleLock), [_veh, false], [_veh]] call CBA_fnc_targetEvent;
|
||||
|
Loading…
Reference in New Issue
Block a user