How to configure the Expansion Safezone - salutesh/DayZ-Expansion-Scripts GitHub Wiki
Go to mpmissions\dayzOffline.<mapname>\expansion\settings
in your server directory and open the file safezonesettings.json
Add the following lines:
{
"Center": [
3728.27001953125,
403.0,
6003.60009765625
],
"Radius": 500
},
-
Center
is a array where you will need to specify the X Y Z coordinates of your safezone. -
Radius
is the size of your safezone (meters).
The easiest method we recommend you to do is to go at the location you want to add your safezone and open your admin tool to get this coordinates.
Think to remove the ,
in },
at the last bracket.
Add the following lines:
{
"Center": [
3728.27001953125,
403.0,
6003.60009765625
],
"Radius": 500,
"Height": 120.0
},
-
Center
is a array where you will need to specify the X Y Z coordinates of your safezone. -
Radius
is the size of your safezone (meters). -
Height
is the Height of your safezone (meters).
The easiest method we recommend you to do is to go at the location you want to add your safezone and open your admin tool to get this coordinates.
Think to remove the ,
in },
at the last bracket.
Add the following lines (you have a picture to show how it should be done)
{
"Positions": [
[
6345,
140.0,
2181
],
[
6198,
140.0,
2433
],
[
6565,
140.0,
2945
],
[
7000,
140.0,
2521
]
]
},
-
Positions
is a array where you will need to specify the X Y Z coordinates of your safezone. Since this is a polygon, you need to add multiple positions like in this example to create a polygon shape safezone.
The easiest method we recommend you to do is to go at the location you want to add your safezone and open your admin tool to get this coordinates.
You can also use the DayZ Editor mod if it's easier for you.
Think to remove the ,
in },
at the last bracket.
As you have noticed, this file also contain various settings. If you are curious about any of them, we recommend you to read the server settings documentation of this file ( https://github.com/salutesh/DayZ-Expansion-Scripts/wiki/%5BServer-Hosting%5D-SafeZoneSettings )