mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Additional Folders/Files in System
This commit is contained in:
21
SQF/dayz_code/system/scheduler/sched_buildingBubble.sqf
Normal file
21
SQF/dayz_code/system/scheduler/sched_buildingBubble.sqf
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user