Update server spawn_vehicles

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).
This commit is contained in:
ebaydayz
2016-04-01 16:45:08 -04:00
parent 426e97dda7
commit ec4eb5418d
8 changed files with 61 additions and 95 deletions

View File

@@ -12,11 +12,11 @@ if (isServer) then {
//Send request
_key = format["CHILD:304:%1:",_id];
_key call server_hiveWrite;
diag_log format["DELETE: %1 Deleted by ID: %2",_activatingPlayer,_id];
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: %1 Deleted by UID: %2",_activatingPlayer,_uid];
diag_log format["DELETE: Player %1 deleted object with UID: %2",_activatingPlayer,_uid];
};
};