Files
DayZ-Epoch/SQF/dayz_code/actions/plotManagement/plotGetFriends.sqf
ebayShopper 746b921321 Use nearEntities for plot pole searches
Also made 73899d5 compatible with DZE_permanentPlot = false; at the
request of @oiad
2017-03-29 16:04:48 -04:00

10 lines
358 B
Plaintext

private ["_name","_plots","_friendlies","_thePlot"];
lbClear 7002;
_plots = ([player] call FNC_getPos) nearEntities ["Plastic_Pole_EP1_DZ",15];
_thePlot = _plots select 0;
_friendlies = _thePlot getVariable ["plotfriends", []];
{
_name = _x select 1;
lbAdd [7002, if (typeName _name == "ARRAY") then {toString _name} else {_name}];
} forEach _friendlies;