mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-07 00:32:55 +03:00
Add player to plot management by default
+ Some minor private array cleanup
This commit is contained in:
@@ -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];
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
private ["_list","_plots","_thePlot","_friends"];
|
||||
|
||||
private ["_pos","_plots","_thePlot","_friends","_toRemove","_newList"];
|
||||
_pos = _this select 0;
|
||||
if (_pos < 0) exitWith {};
|
||||
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
||||
|
||||
Reference in New Issue
Block a user