Update fn_selfActions.sqf

Fix players not being able to lock a safe that they do not have the combination for.
This commit is contained in:
looter809
2021-07-30 22:44:47 -07:00
committed by GitHub
parent e6b2e963ba
commit 17cc619d06

View File

@@ -616,7 +616,7 @@ if (!isNull _cursorTarget && {!_inVehicle && !_isPZombie && _canDo && player dis
};
//Allow owner to unlock vault
if (_isClose && !keypadCancel && {(_typeOfCursorTarget in DZE_LockedStorage) && {_characterID != "0"}}) then {
if (_isClose && !keypadCancel && {_characterID != "0"}) then {
if (s_player_unlockvault < 0) then {
local _combi = [];
if (_typeOfCursorTarget in DZE_LockedStorage) then {
@@ -1110,4 +1110,4 @@ if (_dogHandle > 0) then {
};
//Monitor
player setVariable ["selfActions", diag_ticktime, false];
player setVariable ["selfActions", diag_ticktime, false];