mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user