Jump to content
  • 0

Safe zone scripts to expand it?


mrConfused

Question

22 answers to this question

Recommended Posts

  • 0

Great example on how it works... I was hoping to know how to change them and expand the distance. For some reason the safe zones are gone completely when I changed the spawn height for halo spawn... Now I got players killing traders.

Link to comment
Share on other sites

  • 0

Great example on how it works... I was hoping to know how to change them and expand the distance. For some reason the safe zones are gone completely when I changed the spawn height for halo spawn... Now I got players killing traders.

If u want to make your custom safe zones unpack your a3_epoch_server_settings.pbo and edit config.cpp

		propsPos[] = {

				{ "ProtectionZone_Invisible_F", { 13731.1, 14945.1, 0.01 }, 161.7 }, //TRADER PROTECT
				{ "ProtectionZone_Invisible_F", { 21413.1, 17337.1, 0.5 }, 161.7 }, //TRADER PROTECT
				{ "ProtectionZone_Invisible_F", { 6293.1, 14894.1, 0.2 }, 161.7 }, //TRADER PROTECT
				{ "ProtectionZone_Invisible_F", { 20213.1, 11293.1, 0.14 }, 161.7 } //TRADER PROTECT

There is also other way to make safe zones. You can call it from init.sqf in MPMission folder.

Unpack your mission.pbo lets say epoch.Altis.pbo

Create file safe_zones.sqf add inside your zones. 

 private ["_objects"];
_objects = [
    ["ProtectionZone_Invisible_F",[11605.1, 12005.1, 0.01]], 
    ["ProtectionZone_Invisible_F",[11605.1, 11980.1, 0.01]] 

];

{
 private ["_obj"];
 _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"];
 _obj setvectorup [0,0,1]; 
 _obj setPosATL (_x select 1);
} foreach _objects;

and call it from init.sqf

 

[] execVM "safe_zones.sqf";

 

b_560_95_1.png

Link to comment
Share on other sites

  • 0

any way to increase the radius of the safezones?

 

NO, safezones are actual invisible objects here. 

 

Eather make multiples, or write something the old way ( not recommended tho)

 

The radius of such a safezone object is 25meter.

 

 

 

Small sidenote

 

If u use the object

ProtectionZone_F

Then u can see a red dome from the ouside, ( not when u are in it).

Link to comment
Share on other sites

  • 0
@prone - Under mission.sqm in your mission.pbo... add to class markers.. Make sure you apply the correct item number at the top...zero counts as 1...
 

class Markers
{
items=10;
class Item0
{
position[] = {14939.934,0.053499073,15083.272};
name = "center";
type = "Empty";
};
class Item1
{
position[] = {23600.639,3.19,18000.72};
name = "respawn_east";
type = "Empty";
};
class Item2
{
position[] = {23600.611,3.19,18000.768};
name = "respawn_west";
type = "Empty";
};
class Item3
{
position[]={6195.4927,89.220779,16839.254};
name="westspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=530;
b=530;
};
class Item4
{
position[]={6181.6841,83.907509,16876.732};
name="westspawnname";
text="W Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item5
{
position[]={13334.093,2.2350941,14517.924};
name="centralspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
class Item6
{
position[]={13326.247,2.2928343,14546.686};
name="centralsafezone";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item7
{
position[]={18464.313,23.351175,14263.799};
name="eastspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
class Item8
{
position[]={18461.789,24.769226,14300.033};
name="eastsafezone";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item9
{
position[]={23599.979,3.1900001,18001.455};
name="epochspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorCIV";
fillName="DiagGrid";
a=100;
b=100;
};

 
If you want to add sensors to it as well ....
 

class Sensors
{
items=3;
class Item0
{
position[]={18459.535,23.616171,14277.782};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="eastsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
class Item1
{
position[]={6195.4927,89.220779,16839.254};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="westsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
class Item2
{
position[]={13334.093,2.2350941,14517.924};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="centralsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
};
}; 

Link to comment
Share on other sites

  • 0

Once again, sad boy. Thank you. Zupa... You da man! Looking forward to all the amazing work you pulled on arma 2 brought into Arma 3!!!

 

I'm sorry man, i'm currently full time on arma 3. But it's all private for my 2 servers : ) maybe in 6 months ^^

Link to comment
Share on other sites

  • 0

 

@prone - Under mission.sqm in your mission.pbo... add to class markers.. Make sure you apply the correct item number at the top...zero counts as 1...
 

class Markers
{
items=10;
class Item0
{
position[] = {14939.934,0.053499073,15083.272};
name = "center";
type = "Empty";
};
class Item1
{
position[] = {23600.639,3.19,18000.72};
name = "respawn_east";
type = "Empty";
};
class Item2
{
position[] = {23600.611,3.19,18000.768};
name = "respawn_west";
type = "Empty";
};
class Item3
{
position[]={6195.4927,89.220779,16839.254};
name="westspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=530;
b=530;
};
class Item4
{
position[]={6181.6841,83.907509,16876.732};
name="westspawnname";
text="W Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item5
{
position[]={13334.093,2.2350941,14517.924};
name="centralspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
class Item6
{
position[]={13326.247,2.2928343,14546.686};
name="centralsafezone";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item7
{
position[]={18464.313,23.351175,14263.799};
name="eastspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorGreen";
fillName="Grid";
a=300;
b=300;
};
class Item8
{
position[]={18461.789,24.769226,14300.033};
name="eastsafezone";
text="Safe Zone";
type="mil_warning";
colorName="ColorRed";
};
class Item9
{
position[]={23599.979,3.1900001,18001.455};
name="epochspawn";
markerType="ELLIPSE";
type="Empty";
colorName="ColorCIV";
fillName="DiagGrid";
a=100;
b=100;
};

 
If you want to add sensors to it as well ....
 

class Sensors
{
items=3;
class Item0
{
position[]={18459.535,23.616171,14277.782};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="eastsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
class Item1
{
position[]={6195.4927,89.220779,16839.254};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="westsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
class Item2
{
position[]={13334.093,2.2350941,14517.924};
a=300;
b=300;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="centralsafezone";
expCond = "(player) in thislist;(vehicle player) in thislist;";
expActiv="hint ""You have entered A Safe Zone! Do not fire in Safe Zones."";";
expDesactiv="hint ""You are leaving the Safe Zone!"";";
class Effects
{
};
};
};
}; 

 

 

Thanks buddy, appreciate it.

Link to comment
Share on other sites

  • 0

I'm sorry man, i'm currently full time on arma 3. But it's all private for my 2 servers : ) maybe in 6 months ^^

Totally get it! No worries.. We will all wait.. patiently.. sort of.lol

Link to comment
Share on other sites

  • 0

How would i go about adding a map 'marker' to the static traders to inform people of a "safe zone".

 

I run my markers from init.sqf

 

lets say marker_1 and marker_2. So in init.sqf 

[] execVM "markers_1.sqf";
[] execVM "markers_2.sqf";

Next create 2 files marker_1 and marker_2. inside add:

 

markers_1

_this = createMarker ["safe zone marker", [23700.1, 19026.1, 0]];//cords
_this setMarkerShape "ELLIPSE";
_this setMarkerColor "ColorGreen";//marker color
_this  setMarkerAlpha 0.7;
_this setMarkerSize [600, 600]; //marker size

markers_2

_markerName = "Safe Zone";                                      //set marker name, can see on map
_this = createMarker ["Safe Zone marker", [23700.1, 19026.1, 0]];
_this setMarkerType "mil_dot";
_this setMarkerText format[_markerName];
_this setMarkerColor "ColorBlack";         //color

There is other ways to do it, this is how my markers work=)

 

 

b_560_95_1.png

Link to comment
Share on other sites

  • 0

 

I run my markers from init.sqf

 

lets say marker_1 and marker_2. So in init.sqf 

[] execVM "markers_1.sqf";
[] execVM "markers_2.sqf";

Next create 2 files marker_1 and marker_2. inside add:

 

markers_1

_this = createMarker ["safe zone marker", [23700.1, 19026.1, 0]];//cords
_this setMarkerShape "ELLIPSE";
_this setMarkerColor "ColorGreen";//marker color
_this  setMarkerAlpha 0.7;
_this setMarkerSize [600, 600]; //marker size

markers_2

_markerName = "Safe Zone";                                      //set marker name, can see on map
_this = createMarker ["Safe Zone marker", [23700.1, 19026.1, 0]];
_this setMarkerType "mil_dot";
_this setMarkerText format[_markerName];
_this setMarkerColor "ColorBlack";         //color

There is other ways to do it, this is how my markers work=)

 

 

Yeah i was lookin at blackeagles script (which looks where you grabbed that from) but i was looking more towards what jmung responded with. Thank you very much for responding!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...