mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 18:36:29 +03:00
Use nearEntities for plot pole searches
Also made 73899d5 compatible with DZE_permanentPlot = false; at the
request of @oiad
This commit is contained in:
@@ -24,7 +24,13 @@ _friendlies = [];
|
||||
if (_isPole) then {
|
||||
_plotcheck = [player, true] call FNC_find_plots;
|
||||
_distance = DZE_PlotPole select 1;
|
||||
if (DZE_limitPlots && {!((getPlayerUID player) in DZE_PlotManagementAdmins)}) then {_hasPole = call FNC_plotCheck;};
|
||||
if (DZE_limitPlots && {!(dayz_playerUID in DZE_PlotManagementAdmins)}) then {
|
||||
{
|
||||
if (_x getVariable["ownerPUID","0"] == dayz_playerUID or (_x getVariable["CharacterID","0"] == dayz_characterID)) exitWith {
|
||||
_hasPole = true;
|
||||
};
|
||||
} count (entities "Plastic_Pole_EP1_DZ");
|
||||
};
|
||||
} else {
|
||||
_plotcheck = [player, false] call FNC_find_plots;
|
||||
_distance = DZE_PlotPole select 0;
|
||||
|
||||
Reference in New Issue
Block a user