DayZ
TeamBreezy Jul 8, 2024 @ 4:46am
New to Dayz, question about car despawn time
Hi guys i have 2 questions. How long will it take for my car to despawn if its not used on my LAN server with no mods? I have a Sarka thats parked right by my Large tent which is right now my base in the field 100 meters from Stary Sobor. it is fully repaired and has loot like guns and medicine inside of it. And also second question is how long will it take for a car to despawn thats not yet functioning out in the world? I found a M1025 and i want to bring it back to my base but its 3km away and is missing a battery that i must take from my base and bring to it first.
< >
Showing 1-15 of 21 comments
etwas Jul 8, 2024 @ 5:03am 
welcome :)
vehicles only despawn once its engine got ruined.
TeamBreezy Jul 8, 2024 @ 8:48am 
Originally posted by etwas:
welcome :)
vehicles only despawn once its engine got ruined.

okay thanks! Then i shouldn’t be worried
_KC76_ Jul 8, 2024 @ 3:47pm 
Originally posted by TeamBreezy:
Originally posted by etwas:
welcome :)
vehicles only despawn once its engine got ruined.

okay thanks! Then i shouldn’t be worried

The "lifetime" of vehicles that you have NOT interacted with, is 300 seconds ( 5 minutes)
<event name="VehicleOffroad02"> <nominal>3</nominal> <min>2</min> <max>3</max> <lifetime>300</lifetime> <restock>0</restock> <saferadius>500</saferadius> <distanceradius>500</distanceradius> <cleanupradius>200</cleanupradius> <flags deletable="0" init_random="0" remove_damaged="1"/> <position>fixed</position> <limit>mixed</limit> <active>1</active> <children> <child lootmax="0" lootmin="0" max="3" min="2" type="Offroad_02"/> </children> </event>
Once you interact with the vehicle, the timer changes from the "event" timer to another timer that relies on your interaction every so often, to reset.
TeamBreezy Jul 9, 2024 @ 9:50am 
Originally posted by _KC76_:
Originally posted by TeamBreezy:

okay thanks! Then i shouldn’t be worried

The "lifetime" of vehicles that you have NOT interacted with, is 300 seconds ( 5 minutes)
<event name="VehicleOffroad02"> <nominal>3</nominal> <min>2</min> <max>3</max> <lifetime>300</lifetime> <restock>0</restock> <saferadius>500</saferadius> <distanceradius>500</distanceradius> <cleanupradius>200</cleanupradius> <flags deletable="0" init_random="0" remove_damaged="1"/> <position>fixed</position> <limit>mixed</limit> <active>1</active> <children> <child lootmax="0" lootmin="0" max="3" min="2" type="Offroad_02"/> </children> </event>
Once you interact with the vehicle, the timer changes from the "event" timer to another timer that relies on your interaction every so often, to reset.

so that means if i stumble upon a vehicle in the world that i dont interact with it will despawn after 300 seconds? So lets say i find one that i want but i have to find wheels, battery etc. before i can drive it i have to interact with it and sit inside before i go so it don't just dissapear?
etwas Jul 9, 2024 @ 10:06am 
Originally posted by TeamBreezy:
Originally posted by _KC76_:

The "lifetime" of vehicles that you have NOT interacted with, is 300 seconds ( 5 minutes)
<event name="VehicleOffroad02"> <nominal>3</nominal> <min>2</min> <max>3</max> <lifetime>300</lifetime> <restock>0</restock> <saferadius>500</saferadius> <distanceradius>500</distanceradius> <cleanupradius>200</cleanupradius> <flags deletable="0" init_random="0" remove_damaged="1"/> <position>fixed</position> <limit>mixed</limit> <active>1</active> <children> <child lootmax="0" lootmin="0" max="3" min="2" type="Offroad_02"/> </children> </event>
Once you interact with the vehicle, the timer changes from the "event" timer to another timer that relies on your interaction every so often, to reset.

so that means if i stumble upon a vehicle in the world that i dont interact with it will despawn after 300 seconds? So lets say i find one that i want but i have to find wheels, battery etc. before i can drive it i have to interact with it and sit inside before i go so it don't just dissapear?
no, it wont despawn. dont get confused by above user reading too much xml files.
a vehicle with a ruined engine will despawn after 300 seconds if theres no player in the radius.
\m/ Jul 9, 2024 @ 10:13am 
Its correct what etwas wrote.
TeamBreezy Jul 9, 2024 @ 12:12pm 
Okay thanks guys
_KC76_ Jul 9, 2024 @ 3:15pm 
Originally posted by etwas:
Originally posted by TeamBreezy:

so that means if i stumble upon a vehicle in the world that i dont interact with it will despawn after 300 seconds? So lets say i find one that i want but i have to find wheels, battery etc. before i can drive it i have to interact with it and sit inside before i go so it don't just dissapear?
no, it wont despawn. dont get confused by above user reading too much xml files.
a vehicle with a ruined engine will despawn after 300 seconds if theres no player in the radius.

You are confusing the entry in the Globals.xml with the Lifetime of the cars spawn EVENT
From Globals.xml: <var name="CleanupLifetimeRuined" type="0" value="330"/>

I should have explained "interact with" a little better .. If you (or any other player) can SEE the vehicle, you are within it's Radius (( as defined in the Events.xml; <distanceradius>500</distanceradius> )), and are considered by the game mechanics to have "interacted" with the car spawn event, stopping the Event timer, and making the car a world object that will persist.

If a vehicle spawns in the middle of nowhere, and no player has entered its radius, it will despawn after 5 minutes, and another vehicle will respawn somewhere else.

Edit: Vehicle spawns are "Events", just like any other "Event", they do not persist forever.
Last edited by _KC76_; Jul 9, 2024 @ 3:18pm
✪ Xx_IURI_xX Jul 9, 2024 @ 4:28pm 
hell yeah
Old_Wild_Lynx Jul 9, 2024 @ 9:33pm 
Vehicles that spawn in the game are "eternal".
It's not necessary "interacting" with them, as long as you don't ruin them they will continue to exist even without any player in the server.
The "lifetime" written in "types.xml" (in official vanilla servers = 3 [seconds]) is only valid for vehicles that YOU put into play with the administration tools (in this case in modified servers).
And... one of the most "trivial" mistakes of server administrators is NOT modifying the "lifetime" and, then, complaining when a generated vehicle disappears as soon as you move away a bit. I've seen some servers like that...
_KC76_ Jul 10, 2024 @ 1:55am 
Originally posted by Old_Wild_Lynx:
Vehicles that spawn in the game are "eternal".
It's not necessary "interacting" with them, as long as you don't ruin them they will continue to exist even without any player in the server.
The "lifetime" written in "types.xml" (in official vanilla servers = 3 [seconds]) is only valid for vehicles that YOU put into play with the administration tools (in this case in modified servers).
And... one of the most "trivial" mistakes of server administrators is NOT modifying the "lifetime" and, then, complaining when a generated vehicle disappears as soon as you move away a bit. I've seen some servers like that...
The "Lifetime" line that I commented above is from the EVENTS file .. it is the lifetime of the EVENT of spawning a car. You are correct about the Types.xml lifetime only being 3 seconds, but that has nothing to do with their spawning .. all "event" items have a lifetime of 3 seconds.
- It is also not a "mistake" for server admins to NOT change the lifetime in Types UNLESS they have a Trader set up where the Trader spawns purchased vehicles .. Changing the lifetime in TYPES will make the vehicles "eternal" up to the maximum lifetime of 3888000 seconds .. this is a massive problem on NON-Trader servers, because the cars never despawn and respawn on their natural cycle, eliminating the chance of new cars spawning until someone ruins an existing one. There are a defined number of vehicles on the server, and once it is reached, no new vehicles will spawn, unless another despawns.
Last edited by _KC76_; Jul 10, 2024 @ 1:55am
HolyRustedMetal Jul 10, 2024 @ 2:29am 
I can confirm that uninteracted cars outside the 500m radius do not despawn after 5 minutes on my vanilla server. They're still there after 20min at least. Presumably will be indefinitely.
\m/ Jul 10, 2024 @ 2:33am 
Its still like etwas wrote, cars will not despawn until they are ruined & no player is inside the clean-radius.

Originally posted by _KC76_:
.. this is a massive problem on NON-Trader servers, because the cars never despawn and respawn on their natural cycle, eliminating the chance of new cars spawning until someone ruins an existing one. There are a defined number of vehicles on the server, and once it is reached, no new vehicles will spawn, unless another despawns.

Thats not a problem, thats a solution to ensure that server performance fits.
Last edited by \m/; Jul 10, 2024 @ 2:39am
Old_Wild_Lynx Jul 11, 2024 @ 1:57am 
Originally posted by _KC76_:
The "Lifetime" line that I commented above is from the EVENTS file .. it is the lifetime of the EVENT of spawning a car. You are correct about the Types.xml lifetime only being 3 seconds, but that has nothing to do with their spawning .. all "event" items have a lifetime of 3 seconds.
- It is also not a "mistake" for server admins to NOT change the lifetime in Types UNLESS they have a Trader set up where the Trader spawns purchased vehicles .. Changing the lifetime in TYPES will make the vehicles "eternal" up to the maximum lifetime of 3888000 seconds .. this is a massive problem on NON-Trader servers, because the cars never despawn and respawn on their natural cycle, eliminating the chance of new cars spawning until someone ruins an existing one. There are a defined number of vehicles on the server, and once it is reached, no new vehicles will spawn, unless another despawns.

"LifeTime" in the "types.xml" file has nothing to do with events.
When I write "eternal" I mean for the entire duration of the hive, NOT "just" 3,888,000 (45 days)
That for administrators is always a personal choose, but... I don't see a problem with having "eternal" vehicles (for the entire life of the hive: from "Wipe" to "Wipe", to be clear) like in official Vanilla servers.
Cars MUST NOT "cycle" like loot items, that's absurd and unreal. Vehicles MUST be "eternal"!
If you want more, increase the number... if they are stationary on the map they don't affect performance. And if your server performance is too low, you can't "cripple" the game for this: change provider and/or pay more.
The "LifeTime" of the "types.xml" file set to a higher value is not for the trader, but for vehicles generated by administrators with the administration tools: I've seen it more than once... generating a vehicle for a player that then disappeared... and they blamed the game or the mod... then, if it was a real mistake or they did it on purpose blaming the game or the mod I don't know (some administrators are real D-heads).
If you have a modded server, with administration tools and you also want to generate vehicles, you must necessarily increase the "LifeTime" in the "types.xml", if you want to be a "good administrator"... otherwise, patience, the server is yours... your problem.
Generating a vehicle for a player (for whatever reason you do it) and then it "disappears" for a "LifeTime" that is too low, for me, is a bad thing.
_KC76_ Jul 11, 2024 @ 2:43am 
Originally posted by Old_Wild_Lynx:
Originally posted by _KC76_:
The "Lifetime" line that I commented above is from the EVENTS file .. it is the lifetime of the EVENT of spawning a car. You are correct about the Types.xml lifetime only being 3 seconds, but that has nothing to do with their spawning .. all "event" items have a lifetime of 3 seconds.
- It is also not a "mistake" for server admins to NOT change the lifetime in Types UNLESS they have a Trader set up where the Trader spawns purchased vehicles .. Changing the lifetime in TYPES will make the vehicles "eternal" up to the maximum lifetime of 3888000 seconds .. this is a massive problem on NON-Trader servers, because the cars never despawn and respawn on their natural cycle, eliminating the chance of new cars spawning until someone ruins an existing one. There are a defined number of vehicles on the server, and once it is reached, no new vehicles will spawn, unless another despawns.

1. - "LifeTime" in the "types.xml" file has nothing to do with events.

2. - The "LifeTime" of the "types.xml" file set to a higher value is not for the trader, but for vehicles generated by administrators with the administration tools: .. (some administrators are real D-heads).

3. - If you have a modded server, with administration tools and you also want to generate vehicles, you must necessarily increase the "LifeTime" in the "types.xml", if you want to be a "good administrator"... otherwise, patience, the server is yours... your problem.
Generating a vehicle for a player (for whatever reason you do it) and then it "disappears" for a "LifeTime" that is too low, for me, is a bad thing.

1. - Yes, that's what I said.

2. - That's incorrect (for Trader spawned vanilla vehicles), and called "Admin Abuse", when admins just spawn in items for some players. Vanilla vehicles (with un-modified files) are governed by several different files and scripts, including <min> and <max> values, which are also affected when an admin spawns an item in to the world space. If you review Mod vehicles that include Types files, they are already configured for 3888000 seconds lifetime.

3. - (more admin abuse) There is never a need to have an Admin spawn items for Players. If you have a Trader, and the Player purchased a vehicle, and something happened to that vehicle, you as an Admin, use your admin tools to give yourself the money, and then purchase the vehicle through the Trader again, and give the Player the purchase-spawned vehicle.
-- If you don't have a Trader, then the Player is out nothing that is not a part of normal game-play, if they loose their vehicle, and are entitled to NOTHING from an Admin.
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Jul 8, 2024 @ 4:46am
Posts: 21