From 9cc8b5d83db69d7fdaeb6e43168e659b28e23b18 Mon Sep 17 00:00:00 2001 From: A Man Date: Sat, 25 Jan 2020 12:19:14 +0100 Subject: [PATCH] Add _allowedDistance check for tanks too --- SQF/dayz_code/compile/fn_selfActions.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index 3d8bc2a22..133b65d3c 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -217,8 +217,8 @@ if (_isPZombie) then { }; }; -// Increase distance only if AIR or SHIP -_allowedDistance = [4, 8] select ((_cursorTarget isKindOf "Air") || (_cursorTarget isKindOf "Ship")); +// Increase distance only if AIR, SHIP or TANK +_allowedDistance = [4, 8] select ((_cursorTarget isKindOf "Air") || {_cursorTarget isKindOf "Ship"} || {_cursorTarget isKindOf "Tank"}); if (!isNull _cursorTarget && {!_inVehicle} && {!_isPZombie} && {player distance _cursorTarget < _allowedDistance} && {_canDo}) then { //Has some kind of target