mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 03:16:27 +03:00
Add waitUntil in lockVault and unlockVault
Wait for response from server to verify safe was saved and logged before proceeding with deleting safe object. Tested and confirmed this solves #1413. Most likely helps with #1503 too.
This commit is contained in:
@@ -57,9 +57,12 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
|
||||
if (_claimedBy == _playerID) then {
|
||||
|
||||
if(!isNull _obj && alive _obj) then {
|
||||
|
||||
|
||||
dze_waiting = nil;
|
||||
PVDZE_log_lockUnlock = [player, _obj, false];
|
||||
publicVariableServer "PVDZE_log_lockUnlock";
|
||||
//wait for response from server to verify safe was logged before proceeding
|
||||
waitUntil {!isNil "dze_waiting"};
|
||||
|
||||
_obj setVariable["packing",1];
|
||||
[1,1] call dayz_HungerThirst;
|
||||
|
||||
Reference in New Issue
Block a user