Remove ObjectID and ObjectUID from PVDZ_obj_Destroy calls

This is just the first commit for the removel of all global set ObjectIDs and ObjectUIDs.
Also objects will no longer be send over the network. Only the netID will. The actual object can be resolved with the netID on the server.
This commit is contained in:
A Man
2022-03-24 17:17:45 +01:00
parent 01792fe8e2
commit e72394d6da
12 changed files with 48 additions and 75 deletions

View File

@@ -77,9 +77,8 @@ if ((_ownerID == dayz_playerUID) || {_objType in ["IC_DomeTent","IC_Tent"]}) the
local _magazines = getMagazineCargo _obj;
local _backpacks = getBackpackCargo _obj;
PVDZ_obj_Destroy = [_objectID, _objectUID, player, _pos, dayz_authKey, false]; // delete original tent
PVDZ_obj_Destroy = [netID player,netID _obj, dayz_authKey]; // delete original tent
publicVariableServer "PVDZ_obj_Destroy";
deleteVehicle _obj;
[_weapons, _magazines, _backpacks, _holder] call fn_addCargo; // pile everything onto the ground