Wiki Navigation

Configuration File
XML Format

cfgEventSpawns.xml Configuration

Define the exact map coordinates where dynamic events like helicopter crashes, contaminated zones, and supply drops can spawn on your server.

Overview

The cfgEventSpawns.xml file works in conjunction with events.xml to control dynamic world events. While events.xml defines what events can occur and their properties, cfgEventSpawns.xml defines where those events can spawn on the map. The event name in this file must exactly match the name defined in events.xml for the system to work correctly.

File Structure

Each <event> element contains multiple <pos> elements defining potential spawn locations.

<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" />
    </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 event type identifier that must exactly match an event name defined in events.xml. Common values include "StaticHeliCrash", "ContaminatedArea", "AirdropBase", and custom event names from mods.

Position Parameters

x float

The X-coordinate (east-west position) on the map. Use DayZ map tools or in-game coordinates to find valid positions. Values typically range from 0 to 15360 on Chernarus.

z float

The Z-coordinate (north-south position) on the map. In DayZ, Z represents the horizontal plane position, not height. Values typically range from 0 to 15360 on Chernarus.

a float

The rotation angle in degrees (0-360). Controls the orientation of spawned event objects like helicopter crash wreckage. Set to 0.0 for default orientation or randomize for variety.

Best Practices

Recommended

  • Distribute spawn points evenly across the map for balanced gameplay
  • Add more spawn points than max simultaneous events for variety
  • Choose locations with flat terrain for helicopter crashes
  • Test coordinates in-game before deploying to production

Avoid

  • Placing events inside buildings or under terrain
  • Using coordinates outside the map boundaries
  • Clustering all spawn points in one area of the map
  • Mismatching event names between this file and events.xml

Pro Tips

Use online DayZ map tools like iZurvive or DayZ Central Economy tools to find and verify coordinates. When adding helicopter crash sites, ensure the terrain is relatively flat and clear of trees to prevent visual glitches. For contaminated zones, consider placing them near high-value loot areas to create risk-reward gameplay. Always backup your configuration before making changes, and test new spawn points on a staging server first.