CartoonrBOY Posted March 14, 2015 Report Share Posted March 14, 2015 Hey. I am using this script to have a loyal dog and it works great but I have had to delete the animal cleanup to have it work. This is not ideal. Does anyone know how to disable animal cleanup just for the spawned dogs? Dog mod This is the code which needs editing rather than switching off: server_spawnCleanAnimals = { private ["_pos","_delQtyAnimal","_qty","_missonAnimals","_nearby"]; _missonAnimals = entities "CAAnimalBase"; _delQtyAnimal = 0; { if (local _x) then { _x call dayz_perform_purge; sleep 0.05; _delQtyAnimal = _delQtyAnimal + 1; } else { if (!alive _x) then { _pos = getPosATL _x; if (count _pos > 0) then { _nearby = {(isPlayer _x) && (alive _x)} count (_pos nearEntities [["CAManBase","AllVehicles"], 130]); if (_nearby==0) then { _x call dayz_perform_purge; sleep 0.05; _delQtyAnimal = _delQtyAnimal + 1; }; }; }; }; sleep 0.001; } count _missonAnimals; if (_delQtyAnimal > 0) then { _qty = count _missonAnimals; diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]); }; }; Thanks in advance. Link to comment Share on other sites More sharing options...
0 CartoonrBOY Posted March 17, 2015 Author Report Share Posted March 17, 2015 This code works. Excellent work my friend. Many beans! Link to comment Share on other sites More sharing options...
Question
CartoonrBOY
Hey. I am using this script to have a loyal dog and it works great but I have had to delete the animal cleanup to have it work. This is not ideal. Does anyone know how to disable animal cleanup just for the spawned dogs?
Dog mod
This is the code which needs editing rather than switching off:
Thanks in advance.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now