[OPEN] Question about Playerspawns

MRXCZ

New Member
Hello all,
so i have a question related to Playerspawns. Im trying to create 3 Different Spawnzones (Cherno & Elektro & Novy) and i want to make it like this, if the server restart, it randomly picks one of those 3 spawnzones, and players only spawn there.
Anybody got an idea how i can do this?
Any help would be appreaciated
 
Simply goto your mpmissions/dayzOfflne.chernarusplus/cfgplayerspawnpoints.xml

OR

mpmissions/DayZSurvival.chernarusplus/cfgplayerspawnpoints.xml If your running moddedscripts

Scroll down to <generator_posbubbles> then delete or comment out all of the existing spawn locations and add your own.

Like this:

C++:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playerspawnpoints>
    <spawn_params>
        <min_dist_zombie>30.0</min_dist_zombie>
        <max_dist_zombie>70.0</max_dist_zombie>
        <min_dist_player>25.0</min_dist_player>
        <max_dist_player>70.0</max_dist_player>
        <min_dist_static>0.5</min_dist_static>
        <max_dist_static>2.0</max_dist_static>
    </spawn_params>

    <!-- generate params -->
    <!-- used when no file with generated points is found -->
    <generator_params>
        <grid_density>0.125</grid_density>
        <grid_width>40.0</grid_width>
        <grid_height>40.0</grid_height>
        <min_dist_water>4.0</min_dist_water>
        <max_dist_water>20.0</max_dist_water>
        <min_dist_static>0.5</min_dist_static>
        <max_dist_static>2.0</max_dist_static>
        <min_steepness>-0.785398163</min_steepness>
        <max_steepness>0.785398163</max_steepness>
    </generator_params>

    <generator_posbubbles>
        <pos x="6649.22" z="2710.03" /> <!-- Cherno Center -->
        <pos x="6374.08" z="2361.01" /> <!-- Cherno West -->
        <pos x="7331.70" z="2850.03" /> <!-- Cherno East -->
        <pos x="10077.17" z="1988.65" /> <!-- Electro West -->
        <pos x="10553.55" z="2313.37" /> <!-- Electro East -->
        <pos x="7085.73" z="7720.85" /> <!-- Novy -->
    </generator_posbubbles>
</playerspawnpoints>
 
Last edited:
Thanks, but im looking for some script that randomly picks one of those spawnzones every server restart (1st zone would be cherno, 2nd zone would be elektro, 3rd zone would be novy) but everbody can only spawn in 1 of those zones until the server restarts again
 
Back
Top