delete key instead of setting to blank arrays

This commit is contained in:
vbawol 2016-01-02 18:43:49 -06:00
parent bff45ee5a4
commit 8d0c838c0a
6 changed files with 7 additions and 4 deletions

View File

@ -20,4 +20,5 @@
[Changed] Driver or passengers of a driverless can now control vehicle locks. Also only the owner can control locks from outside of a occupied vehicle.
[Changed] Commented out Halloween masks from loot tables.
[Updated] New Battleye remoteExec.txt for added remoteExec calls.
[Fixed] When killed instead of saving blank array delete (object,trader,vehicle) data from database.
[Info] Removed old .bikey and added new one for 0370.

View File

@ -11,6 +11,6 @@ if (!isNull (_this select 0)) then {
[(_this select 1), "UAV"] call EPOCH_server_triggerEvent;
_objHiveKey = format ["%1:%2", (call EPOCH_fn_InstanceID), _slot];
["AI", _objHiveKey, []] call EPOCH_fnc_server_hiveSET;
["AI", _objHiveKey call EPOCH_fnc_server_hiveDEL;
};
};

View File

@ -15,7 +15,8 @@ if (!isNull _building) then {
};
_vehHiveKey = format ["%1:%2", (call EPOCH_fn_InstanceID), _vehSlot];
["Building", _vehHiveKey, []] call EPOCH_fnc_server_hiveSET;
["Building", _vehHiveKey] call EPOCH_fnc_server_hiveDEL;
EPOCH_BuildingSlots set [_vehSlot, 0];
EPOCH_BuildingSlotCount = { _x == 0 } count EPOCH_BuildingSlots;

View File

@ -7,7 +7,8 @@ if (!isNull _storage) then {
_vehSlot = _storage getVariable["STORAGE_SLOT", "ABORT"];
if (_vehSlot != "ABORT") then {
_vehHiveKey = format ["%1:%2", (call EPOCH_fn_InstanceID), _vehSlot];
["Storage", _vehHiveKey, []] call EPOCH_fnc_server_hiveSET;
["Storage", _vehHiveKey] call EPOCH_fnc_server_hiveDEL;
EPOCH_StorageSlots pushBack _vehSlot;
EPOCH_StorageSlotsCount = count EPOCH_StorageSlots;

View File

@ -7,7 +7,7 @@ if (!isNull _vehicle) then {
_vehSlot = _vehicle getVariable ["VEHICLE_SLOT", "ABORT"];
if (_vehSlot != "ABORT") then {
_vehHiveKey = format ["%1:%2", (call EPOCH_fn_InstanceID), _vehSlot];
["Vehicle", _vehHiveKey, []] call EPOCH_fnc_server_hiveSET;
["Vehicle", _vehHiveKey] call EPOCH_fnc_server_hiveDEL;
EPOCH_VehicleSlots pushBack _vehSlot;
EPOCH_VehicleSlotCount = count EPOCH_VehicleSlots;
publicVariable "EPOCH_VehicleSlotCount";