Files
DayZ-Epoch/SQF/dayz_code/system/scheduler/sched_buildingBubble.sqf
2016-02-27 22:34:50 -05:00

22 lines
541 B
Plaintext

sched_buildingBubble = {
private "_dis";
{
_dis = _x distance player;
if ((player distance _x) > 400) then {
if (_x in dayz_buildingBubbleMonitor) then {
dayz_buildingBubbleMonitor = dayz_buildingBubbleMonitor - [_x];
};
//Clear Loot vars
if (!(isNil {player getVariable "looted"})) then {
_x setVariable ["looted",nil]; //SpawnCheck
};
if (!(isNil {player getVariable "zombieSpawn"})) then {
_x setVariable ["zombieSpawn",nil]; //SpawnCheck
};
};
} count dayz_buildingBubbleMonitor;
objNull
};