mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
@@ -1,4 +1,4 @@
|
|||||||
private ["_target","_targets","_man","_manDis","_localtargets","_remotetargets"];
|
private ["_agent","_range","_target","_targets","_man","_manDis","_localtargets","_remotetargets"];
|
||||||
_agent = _this;
|
_agent = _this;
|
||||||
if (isNull _agent) exitWith {objNull}; // Prevent errors if zombie is suddenly deleted
|
if (isNull _agent) exitWith {objNull}; // Prevent errors if zombie is suddenly deleted
|
||||||
_target = objNull;
|
_target = objNull;
|
||||||
@@ -25,6 +25,7 @@ _targets = _localtargets + _remotetargets;
|
|||||||
//Search for objects
|
//Search for objects
|
||||||
if (count _targets == 0) then {
|
if (count _targets == 0) then {
|
||||||
//"ThrownObjects","GrenadeHandTimedWest","SmokeShell"]
|
//"ThrownObjects","GrenadeHandTimedWest","SmokeShell"]
|
||||||
|
private["_objects"];
|
||||||
_objects = _agent nearObjects ["GrenadeHand", 300];
|
_objects = _agent nearObjects ["GrenadeHand", 300];
|
||||||
{
|
{
|
||||||
if (!(_x in _targets)) then {
|
if (!(_x in _targets)) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user