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

@@ -1,15 +1,13 @@
private ["_id", "_uid", "_armed"];
_trap = _this select 0;
local _trap = _this select 0;
if (!isNull _trap) then {
while { true } do {
_id = _trap getVariable ["ObjectID", "0"];
_uid = _trap getVariable ["ObjectUID", "0"];
_armed = _trap getVariable "armed";
local _armed = _trap getVariable "armed";
if (isNull _trap) exitWith { /* break from loop */ };
if (((parseNumber _id > 0) || (parseNumber _uid > 0)) && !isNil "_armed") exitWith {
if (!isNil "_armed") exitWith {
if (isServer) then {
dayz_traps set [count dayz_traps, _trap];
};