Files
DayZ-Epoch/SQF/dayz_code/actions/vault_combination_1.sqf
AirwavesMan 021f22bf0e Add a tall safe
This safe is the biggest version in-game. The safe is not in by default. It is up to the server admins to use it.

Model made by @Helion4
2020-12-05 14:52:15 +01:00

21 lines
681 B
Plaintext

if (dayz_actionInProgress) exitWith {localize "STR_EPOCH_PLAYER_21" call dayz_rollingMessages;};
dayz_actionInProgress = true;
dayz_selectedVault = _this select 3;
dayz_combination = "";
if (dayz_lastCodeFail > diag_tickTime) exitWith {
dayz_actionInProgress = false;
format [localize "STR_EPOCH_PLAYER_19_WAIT",round(dayz_lastCodeFail - diag_tickTime)] call dayz_rollingMessages;
};
if (!isNull dayz_selectedVault) then {
if ((typeOf dayz_selectedVault) in ["VaultStorageLocked","VaultStorage","VaultStorage2Locked","VaultStorage2","TallSafe","TallSafeLocked"]) then {
createDialog "SafeKeyPad";
} else {
createDialog "KeypadUI";
};
};
dayz_actionInProgress = false;