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:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
[_objectID,_objectUID] call server_deleteObj;
|
||||
[_objectID,_objectUID,_activatingPlayer] call server_deleteObj;
|
||||
*/
|
||||
private["_id","_uid","_key","_activatingPlayer"];
|
||||
_id = _this select 0;
|
||||
@@ -19,4 +19,4 @@ if (isServer) then {
|
||||
_key call server_hiveWrite;
|
||||
diag_log format["DELETE: Player %1 deleted object with UID: %2",_activatingPlayer,_uid];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user