From 25cc139dbaf54cabf7d609dbede1c720b17bab07 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 21 Oct 2020 09:38:07 -0600 Subject: [PATCH] Vehicle Lock: add events (#7938) * vehiclelock: events * Update addons/vehiclelock/functions/fnc_lockpick.sqf Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> * Update addons/vehiclelock/functions/fnc_lockpick.sqf Co-authored-by: PabstMirror * Update addons/vehiclelock/functions/fnc_lockpick.sqf Co-authored-by: PabstMirror Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> Co-authored-by: PabstMirror --- addons/vehiclelock/functions/fnc_lockpick.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/vehiclelock/functions/fnc_lockpick.sqf b/addons/vehiclelock/functions/fnc_lockpick.sqf index f106216c897..cdc2259b8bf 100644 --- a/addons/vehiclelock/functions/fnc_lockpick.sqf +++ b/addons/vehiclelock/functions/fnc_lockpick.sqf @@ -53,10 +53,12 @@ switch (_funcType) do { _returnValue = !([_unit, _veh] call FUNC(hasKeyForVehicle)) && {(locked _veh) in [2, 3]}; }; case "startLockpick": { + [QGVAR(startedLockpick), [_veh]] call CBA_fnc_localEvent; [_vehLockpickStrength, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize LSTRING(Action_LockpickInUse)), _condition, ["isNotInside", "isNotSwimming"]] call EFUNC(common,progressBar); }; case "finishLockpick": { [QGVAR(setVehicleLock), [_veh, false], [_veh]] call CBA_fnc_targetEvent; + [QGVAR(finishedLockpick), [_veh]] call CBA_fnc_localEvent; }; default { ERROR("bad function type");