Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
drgullen

Respawn Question

Recommended Posts

I'll ask the question, but then explain myself so you understand where I'm coming from.  The question is: Does the respawn value in the economy.xml only apply to ruined or dead things or does that also apply to something that has reached the end of its lifetime?

Here is the situation.  I have a vehicle event defined as follows:

	<event name="VehicleLandRoverDefender">
		<nominal>15</nominal>
		<min>10</min>
		<max>25</max>
		<lifetime>7200</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="25" min="10" type="CrSk_Land_Rover_Defender_110"/>
		</children>
	</event>

As you can see, this event has a lifetime value of 7200 meaning that once it has been sitting in its spawn location untouched for 2 hours, the vehicle will disappear from that location.

In my economy.xml I have vehicles set to not respawn like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<economy>
    <dynamic init="1" load="1" respawn="1" save="1"/>
    <animals init="1" load="0" respawn="0" save="0"/>
    <zombies init="1" load="0" respawn="1" save="0"/>
    <vehicles init="1" load="1" respawn="0" save="1"/>
    <randoms init="0" load="0" respawn="1" save="0"/>
    <custom init="0" load="0" respawn="0" save="0"/>
    <building init="1" load="1" respawn="0" save="1"/>
    <player init="1" load="1" respawn="1" save="1"/>
</economy>

I have reasons why I changed the 1 to a zero for vehicle respawns and I won't bore you with the details, but what I'm wondering is with this value set to zero, would an untouched vehicle that isn't ruined and that reaches its end of lifetime respawn or would it not?  In other words, does the CE act the same in terms of respawning something regardless of whether its ruined or at its end of lifetime?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×