mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Updated loot spawning code for vehicle cargo. Also it is faster and more efficient to call spawn_vehicles repeatedly in one thread rather than spawn it hundreds of times (opening hundreds of simultaneous script threads).
22 lines
613 B
Plaintext
22 lines
613 B
Plaintext
/*
|
|
[_objectID,_objectUID] call server_deleteObj;
|
|
*/
|
|
private["_id","_uid","_key"];
|
|
_id = _this select 0;
|
|
_uid = _this select 1;
|
|
_activatingPlayer = _this select 2;
|
|
|
|
if (isServer) then {
|
|
//remove from database
|
|
if (parseNumber _id > 0) then {
|
|
//Send request
|
|
_key = format["CHILD:304:%1:",_id];
|
|
_key call server_hiveWrite;
|
|
diag_log format["DELETE: Player %1 deleted object with ID: %2",_activatingPlayer,_id];
|
|
} else {
|
|
//Send request
|
|
_key = format["CHILD:310:%1:",_uid];
|
|
_key call server_hiveWrite;
|
|
diag_log format["DELETE: Player %1 deleted object with UID: %2",_activatingPlayer,_uid];
|
|
};
|
|
}; |