Wiki Navigation

cfgEventSpawns.xml Configuration

The cfgEventSpawns.xml file defines dynamic event spawns in your DayZ server, such as helicopter crashes and other special events.

Overview

The cfgEventSpawns.xml file is used to define where dynamic events can spawn in your DayZ server. It controls:

  • Helicopter crash site locations
  • Special event spawn points
  • Distribution of event locations across the map

File Structure

The cfgEventSpawns.xml file consists of multiple <event> elements, each defining a potential spawn location:

<eventposdef>
    <event name="StaticHeliCrash">
        <pos x="4540.4" z="8312.6" a="0.0" />
        <pos x="5280.5" z="8545.4" a="0.0" />
        <pos x="5836.9" z="8765.4" a="0.0" />
        <pos x="7069.5" z="9119.1" a="0.0" />
        <pos x="7786.3" z="8810.9" a="0.0" />
    </event>
    <event name="ContaminatedArea">
        <pos x="2727.3" z="5355.8" a="0.0" />
        <pos x="11071.3" z="12326.3" a="0.0" />
    </event>
</eventposdef>

Event Parameters

name string

The name of the event type (must match event definitions in events.xml).

Position Parameters

x float

X-coordinate on the map.

z float

Z-coordinate on the map (equivalent to Y in other coordinate systems).

a float

Angle/rotation in degrees.

Relationship with events.xml

The cfgEventSpawns.xml file works in conjunction with events.xml:

  • events.xml defines what events can occur and their properties
  • cfgEventSpawns.xml defines where these events can spawn
  • The event name in cfgEventSpawns.xml must match the name in events.xml

Best Practices

When configuring event spawns, consider the following best practices:

  • Distribute event spawn points evenly across the map
  • Choose locations that are accessible but require some effort to reach
  • Ensure helicopter crash sites have enough flat terrain for proper spawning
  • Add more spawn points than the maximum number of simultaneous events to create variety

Need Help?

For more information about configuring event spawns, check the events.xml documentation or join our Discord community for assistance.