mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add _allowedDistance check for tanks too
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user