Globally remove wrecked objects

using PVEH PVDZE_obj_Remove. Wrecks only exist for the players currently
in the server when the parent object is destroyed. Passing the object
through the PVEH does not work.
This commit is contained in:
icomrade
2016-08-21 15:46:33 -04:00
parent 2ef433dc93
commit 9aa1784f23
5 changed files with 77 additions and 57 deletions

View File

@@ -124,4 +124,13 @@ switch (_variable) do {
PVDZE_plr_FriendRQ = _arraytosend;
_owner publicVariableClient "PVDZE_plr_FriendRQ";
};
case "RemoveObject": {
PVDZE_obj_Remove = _arraytosend;
{
if (isPlayer _x) then {
(owner _x) publicVariableClient "PVDZE_obj_Remove";
};
} forEach playableUnits;
};
};