How to Configure DayZ Events in events.xml
Learn how events.xml controls Central Economy populations for animals, infected, vehicles, loot and special world events.
Looking for DayZ console bot setup guides?
See our feature pages for DayZ auto ban, and DayZ economy bot.
events.xml
events.xml defines Central Economy events. An event is a population rule: it tells the game what can appear, how many it should work toward, where its positions come from and how long the event can remain active.
A practical event block
This is the shape of an existing animal event from the supplied mission files:
<event name="AmbientFox">
<nominal>0</nominal>
<min>0</min>
<max>30</max>
<lifetime>33</lifetime>
<restock>25</restock>
<saferadius>0</saferadius>
<distanceradius>80</distanceradius>
<cleanupradius>120</cleanupradius>
<flags deletable="0" init_random="0" remove_damaged="0" />
<position>fixed</position>
<limit>mixed</limit>
<active>1</active>
<children>
<child lootmax="5" lootmin="0" max="0" min="0" type="Animal_VulpesVulpes" />
</children>
</event>The classname in child type must already exist in the game build. The event does not create a new animal, vehicle or script class.
Turning an existing event off
Set the event's active value to 0. This disables that event definition without deleting the rest of the file. Set it back to 1 to enable it again.
The values players usually change
- nominal: the event's target population.
- min / max: lower and upper event count settings. Their exact meaning depends on the event's limit mode.
- lifetime: how long an event object remains eligible under Central Economy lifetime handling.
- restock: delay before a missing event can be replaced when replacement is needed.
- saferadius: keeps event creation away from players by the configured distance.
- distanceradius: distance used by the event's placement/counting checks.
- cleanupradius: cleanup area used for objects belonging to the event.
- position: whether the event uses fixed positions or player-relative spawning.
- limit: how the parent and child counts are evaluated (parent, child, custom or mixed in the supplied files).
These numbers are population controls, not guarantees that a player will always see the nominal number in the world.
Children and linked files
Each <child> is a possible entity classname for the event. Its min, max, lootmin and lootmax values are evaluated with the parent event's limit mode. For fixed-position events, the event name is also used by cfgeventspawns.xml to find permitted locations. Spawned vehicle or object classnames can also have attachment and cargo rules in cfgspawnabletypes.xml.
Editable on console: when the host exposes the mission file and the referenced event/classnames are supported by the game build.
Source basis: supplied db/events.xml files, event-position relationships and Central Economy source notes.
Practical event recipes
For a fixed vehicle or object event, the useful relationship is the event name: keep the same name in events.xml and in the matching <event name="..."> block in cfgeventspawns.xml. For a wildlife event, the child classname and the event's position/limit settings are the important pieces; changing only a child count does not create a new spawn location.
To disable one event temporarily, set active to 0 and leave the block in place. This makes the change reversible and avoids losing the event's original settings. To change how many entities the economy may maintain, adjust the event's population fields and then check its limit mode before interpreting the result.
When an event appears to ignore a change
Check the event is active, its child classname is supported, its position mode matches the positions file, and its fixed positions have not all been removed. Also check saferadius, distanceradius and cleanupradius: a valid event can be delayed or cleaned up because of those distances rather than because the XML is malformed.