mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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 <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>
This commit is contained in:
parent
e07d2ae5d5
commit
25cc139dba
@ -53,10 +53,12 @@ switch (_funcType) do {
|
|||||||
_returnValue = !([_unit, _veh] call FUNC(hasKeyForVehicle)) && {(locked _veh) in [2, 3]};
|
_returnValue = !([_unit, _veh] call FUNC(hasKeyForVehicle)) && {(locked _veh) in [2, 3]};
|
||||||
};
|
};
|
||||||
case "startLockpick": {
|
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);
|
[_vehLockpickStrength, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize LSTRING(Action_LockpickInUse)), _condition, ["isNotInside", "isNotSwimming"]] call EFUNC(common,progressBar);
|
||||||
};
|
};
|
||||||
case "finishLockpick": {
|
case "finishLockpick": {
|
||||||
[QGVAR(setVehicleLock), [_veh, false], [_veh]] call CBA_fnc_targetEvent;
|
[QGVAR(setVehicleLock), [_veh, false], [_veh]] call CBA_fnc_targetEvent;
|
||||||
|
[QGVAR(finishedLockpick), [_veh]] call CBA_fnc_localEvent;
|
||||||
};
|
};
|
||||||
default {
|
default {
|
||||||
ERROR("bad function type");
|
ERROR("bad function type");
|
||||||
|
Loading…
Reference in New Issue
Block a user