Add plotManagementMustBeClose config option

Setting false allows adding any online player to plot friends regardless
of their distance from the pole.
This commit is contained in:
ebaydayz
2016-05-17 20:09:37 -04:00
parent edb64c4e05
commit f61c6d8dac
2 changed files with 4 additions and 2 deletions

View File

@@ -1,13 +1,14 @@
private ["_close"];
lbClear 7001;
_closePeople = player nearEntities ["CAManBase", 10];
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits};
Humans = [];
{
if (_x isKindOf "Man" and !(_x isKindOf "zZombie_base")) then {
if (isPlayer _x) then {
_friendUID = getPlayerUID _x;
_friendName = name _x;
Humans = Humans + [[_friendUID,_friendName]] ;
lbAdd [7001, _friendName];
};
} forEach _closePeople;
} count _closePeople;