Skip to content

Commit

Permalink
Vehicle Lock: add events (#7938)
Browse files Browse the repository at this point in the history
* 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 <pabstmirror@gmail.com>

* Update addons/vehiclelock/functions/fnc_lockpick.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
  • Loading branch information
3 people authored Oct 21, 2020
1 parent e07d2ae commit 25cc139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/vehiclelock/functions/fnc_lockpick.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 25cc139

Please sign in to comment.