How long destroyed vehicles respawn?

Discussion in 'DayZ Mod' started by J.Dominic, Dec 10, 2017.

  1. J.Dominic

    J.Dominic New Member

    Joined:
    Aug 14, 2013
    Messages:
    25
    Likes Received:
    0
    Now i run DayZ Mod 1.8.9 server. And i try to destroy some vehicle and restart server but it doesn't respawn.
     
  2. Goose QZ

    Goose QZ New Member

    Joined:
    Dec 11, 2017
    Messages:
    9
    Likes Received:
    0
    Destroyed 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
     
  3. J.Dominic

    J.Dominic New Member

    Joined:
    Aug 14, 2013
    Messages:
    25
    Likes Received:
    0
    Thank you sir :)
     
  4. Goose QZ

    Goose QZ New Member

    Joined:
    Dec 11, 2017
    Messages:
    9
    Likes Received:
    0
    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
     
  5. J.Dominic

    J.Dominic New Member

    Joined:
    Aug 14, 2013
    Messages:
    25
    Likes Received:
    0
    Thank you @Goose QZ i know about that setting because before i comeback running vanilla i use Epoch too ;)
     
  6. Goose QZ

    Goose QZ New Member

    Joined:
    Dec 11, 2017
    Messages:
    9
    Likes Received:
    0
    Alright, well good luck, any more questions feel free to ask them in this thread, and ill try and help
     
  7. clifdayz

    clifdayz Well-Known Member

    Joined:
    Jul 28, 2015
    Messages:
    155
    Likes Received:
    13
    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.
     
  8. J.Dominic

    J.Dominic New Member

    Joined:
    Aug 14, 2013
    Messages:
    25
    Likes Received:
    0
    Thank you sir brother.
     

Share This Page