From d60600a825dd8f2b06aa5898cd5565a21687f50e Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 11 Aug 2016 19:50:03 -0400 Subject: [PATCH] Fixed missing tags. Vanilla development commit: https://github.com/DayZMod/DayZ/commit/ed4ba17a1c3c02fee6d6fa32fa23d053c830c093 --- SQF/dayz_code/compile/zombie_findTargetAgent.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {