J.Dominic
New Member
Now i run DayZ Mod 1.8.9 server. And i try to destroy some vehicle and restart server but it doesn't respawn.
Thank you sirDestroyed vehicles wont respawn upon restart or in any other period of time.
Vehicles spawn "Dynamically" meaning they spawn in mainly random places around the map. Its very unlikely you will get the same vehicle to spawn in the same place it spawned previously just by destroying it
While never running a vanilla server, i have ran epoch, which has an option in the init.sqf to change how many vehicles can be on the map at one time. If this is the same with vanilla, you could change this number if you want more or less vehicles to spawn
#remove damaged vehicles older than vehicle_spawns.CleanupTime
DELETE FROM object_data
WHERE CharacterID = 0
AND Damage = 1
AND SYSDATE() > DATE(last_updated) + INTERVAL (
SELECT CleanupTime
FROM vehicle_spawns
WHERE vehicle_spawns.Classname = object_data.Classname
LIMIT 1) MINUTE;
Thank you sir brother.the other things to mention is that in vanilla there is this code in pCleanup()
Code:#remove damaged vehicles older than vehicle_spawns.CleanupTime DELETE FROM object_data WHERE CharacterID = 0 AND Damage = 1 AND SYSDATE() > DATE(last_updated) + INTERVAL ( SELECT CleanupTime FROM vehicle_spawns WHERE vehicle_spawns.Classname = object_data.Classname LIMIT 1) MINUTE;
and in vehicle_spawns.sql CleanupTime is from 60-900 minutes so vehicles may not even be cleaned up to repsawn at restart. Personally, I remove everything after "AND Damage = 1" for my server.