mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Stop server_publishVehicle3 duping a vehicle if hive fails to update (#1895)
* Stop server_publishVehicle3 duping a vehicle if hive fails to update server_publishVehicle3 first creates the vehicle in the database then reads it back to see if it's successful, previously it wasn't deleting the vehicle if it failed. Added a 1 second delay after the vehicle delete to stop duping of vehicles also. Fixed references to server_deleteObj that were using 2 parameters instead of the required 3 and updated the example. * Rework
This commit is contained in:
@@ -80,7 +80,10 @@ _key call server_hiveWrite;
|
||||
};
|
||||
|
||||
if (!_done) exitWith {
|
||||
diag_log("CUSTOM: failed to get id for : " + str(_uid));
|
||||
diag_log("HIVE-pv3: failed to get id for : " + str(_uid));
|
||||
_key = format["CHILD:310:%1:",_uid];
|
||||
_key call server_hiveWrite;
|
||||
|
||||
dze_waiting = "fail";
|
||||
(owner _activatingPlayer) publicVariableClient "dze_waiting";
|
||||
};
|
||||
@@ -137,9 +140,7 @@ _key call server_hiveWrite;
|
||||
} count _objWpnTypes;
|
||||
|
||||
_object setVariable ["ObjectID", _oid, true];
|
||||
|
||||
_object setVariable ["lastUpdate",time];
|
||||
|
||||
_object setVariable ["CharacterID", _characterID, true];
|
||||
|
||||
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
|
||||
|
||||
Reference in New Issue
Block a user