diff --git a/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp b/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp index 73518c7b3..15f3412c1 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp @@ -3,7 +3,7 @@ class CAAnimalBase: Animal { class Eventhandlers { - //local = "_z = _this select 0; if ((!isServer and !isNull _z) and {(side _z != civilian)}) exitWith { PVDZ_sec_atp = [ 'wrong side', player ]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };"; + local = "_z = _this select 0; if ((_this select 1) && isServer && (({isPlayer _x} count (_z nearEntities ['CAManBase',150])) == 0)) exitWith { _z call sched_co_deleteVehicle; };"; }; class UserActions {