mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
thirst and hunger loss on unlocking safes/doors
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
*/
|
||||
private ["_display","_obj","_objectCharacterID"];
|
||||
|
||||
if(!isNil "DZE_DYN_UnlockDoorInprogress") exitWith { cutText [(localize "str_epoch_player_21") , "PLAIN DOWN"]; };
|
||||
|
||||
DZE_DYN_UnlockDoorInprogress = true;
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
|
||||
if(!isNull dayz_selectedDoor) then {
|
||||
|
||||
if (!isNil 'KeyCodeTryTimer') then {
|
||||
@@ -74,4 +80,5 @@ if(!isNull dayz_selectedDoor) then {
|
||||
// close display since no target
|
||||
_display = findDisplay 41144;
|
||||
_display closeDisplay 3000;
|
||||
};
|
||||
};
|
||||
DZE_DYN_UnlockDoorInprogress = nil;
|
||||
Reference in New Issue
Block a user