Explainer

DayZ events.xml explained

events.xml runs everything on a DayZ map that isn't a single loot item: cars and trucks, helicopter and police crashes, wolves and deer, infected hordes and some loot piles. Each event has a few numbers that decide how many exist and how long they last. Ready to change them? Use the free Events Editor.

  • 3 min read
  • Updated
  • PlayStation, Xbox and PC
db/events.xmlExample
<event name="StaticHeliCrash">    <nominal>3</nominal>    <min>1</min>    <max>5</max>    <lifetime>2100</lifetime>    <restock>0</restock>    <active>1</active></event>

What an event is

An event is a thing the economy places in the world from a list of possible positions. The main families are:

  • Vehicles: names starting Vehicle, such as VehicleCivilianSedan
  • Crashes: StaticHeliCrash, StaticPoliceCar and similar wrecks with loot
  • Animals: deer, wolves, bears and others
  • Infected: hordes around towns, military areas and events

The numbers

Most events use the same values:

  • Nominal: how many of the event the economy aims for
  • Min and max: the floor and ceiling the count can move between
  • Lifetime: how long the event lasts once spawned
  • Restock: how long before it can spawn again
  • Active: 1 switches the event on, 0 switches it off

Children and positions

Children are the actual objects an event spawns, such as different colours of a car or the loot at a crash. Where events can appear is set in a separate file, cfgeventspawns.xml. Raising nominal above the number of positions available does nothing extra.

Common changes

The changes people make most often each have their own guide: more cars, more heli crashes and infected and animal numbers.

Flags, position and limit

Below the main numbers, each event has a few switches that change how it behaves:

  • deletable: whether the economy may clean the event up when it wants to place it elsewhere
  • init_random: whether the event starts at random positions when the server first starts
  • remove_damaged: whether ruined objects from the event are cleared, so a wrecked car makes way for a new one
  • position: fixed uses the positions in cfgeventspawns.xml, player places the event around players
  • limit: whether min and max count the event as a whole (parent), each child separately (child), or both (mixed)

Radius values

saferadius, distanceradius and cleanupradius decide how close to players an event can appear, how far apart copies must be, and how near a player has to be for the economy to leave it alone. Raising saferadius stops cars or animals appearing right in front of someone. Most servers never touch these, and that's fine.

Mistakes that stop events working

When an event doesn't appear, check these before anything else:

  • Min set higher than max, or nominal higher than max
  • active left at 0 after testing
  • A child type spelt differently from its classname, so the economy can't find the object
  • An event added to events.xml with no positions in cfgeventspawns.xml, so it has nowhere to go
  • A missing closing tag, which can stop the whole file loading. The validator finds it

Tools for this

Common questions

Where is events.xml?

In your mission's db folder, next to types.xml. See where DayZ server files live.

What's the difference between events.xml and types.xml?

types.xml controls single loot items. events.xml controls things placed as a whole, like vehicles, crashes, animals and infected groups.

Is there a DayZ events editor?

Yes. The Blxckforge Events Editor is free in your browser and catches mistakes such as min above max before you upload.

What does restock 0 mean in events.xml?

No waiting period. When an event is removed, the economy can place a new one as soon as it next checks the count.

Can I turn off dynamic gas zones in events.xml?

Yes. Set active to 0 on the ContaminatedArea_Dynamic event and restart. Static zones in cfgEffectArea.json are separate. See gas zones.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.