mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
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.
19 lines
615 B
Plaintext
19 lines
615 B
Plaintext
// Written by salival (https://github.com/oiad)
|
|
|
|
closeDialog 0;
|
|
|
|
local _plotCheck = [player, false] call FNC_find_plots;
|
|
local _hasAccess = [player,_plotCheck select 2] call FNC_check_access;
|
|
|
|
if ((_hasAccess select 0) or (_hasAccess select 2) or (_hasAccess select 3) or (_hasAccess select 4)) then {
|
|
|
|
{
|
|
PVDZ_obj_Destroy = [netID player,netID _x,dayz_authKey];
|
|
publicVariableServer "PVDZ_obj_Destroy";
|
|
|
|
systemChat format[localize "STR_CL_VG_HELIPAD_REMOVED",typeOf _x];
|
|
} count (nearestObjects [_plotCheck select 2,vg_heliPads,Z_VehicleDistance]);
|
|
} else {
|
|
systemChat localize "STR_EPOCH_PLAYER_134";
|
|
};
|