Add player to plot management by default

+ Some minor private array cleanup
This commit is contained in:
icomrade
2016-07-21 16:20:41 -04:00
parent 3519297e2d
commit 96ddc8ff62
4 changed files with 18 additions and 6 deletions

View File

@@ -1,12 +1,11 @@
private ["_close"];
private ["_closePeople","_friendUID","_friendName"];
lbClear 7001;
_closePeople = player nearEntities ["CAManBase", 10];
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits};
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits;} else {_closePeople = player nearEntities ["CAManBase", 10];};
Humans = [];
{
if (isPlayer _x) then {
_friendUID = [_x] call FNC_GetPlayerUID;
_friendName = name _x;
_friendName = name _x;
Humans = Humans + [[_friendUID,_friendName]];
lbAdd [7001, _friendName];
};