diff --git a/SQF/dayz_code/compile/zombie_findTargetAgent.sqf b/SQF/dayz_code/compile/zombie_findTargetAgent.sqf index 1a13dea4d..1e58d5c23 100644 --- a/SQF/dayz_code/compile/zombie_findTargetAgent.sqf +++ b/SQF/dayz_code/compile/zombie_findTargetAgent.sqf @@ -1,4 +1,4 @@ -private ["_target","_targets","_man","_manDis","_localtargets","_remotetargets"]; +private ["_agent","_range","_target","_targets","_man","_manDis","_localtargets","_remotetargets"]; _agent = _this; if (isNull _agent) exitWith {objNull}; // Prevent errors if zombie is suddenly deleted _target = objNull; @@ -25,6 +25,7 @@ _targets = _localtargets + _remotetargets; //Search for objects if (count _targets == 0) then { //"ThrownObjects","GrenadeHandTimedWest","SmokeShell"] + private["_objects"]; _objects = _agent nearObjects ["GrenadeHand", 300]; { if (!(_x in _targets)) then {