Jump to content
  • 0

zombie free area


Achmed

Question

11 answers to this question

Recommended Posts

  • 0

create a sensor on this island in your mission.sqm like this:

		class Item34
		{
			position[]={22561,0,19635}; //add location of island {x, z, y}
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="ZedFreeSector";
			expCond="(player distance ZedFreeSector) < 800;"; //adjust radius to your needs
			expActiv="isSector = true; clearzeds = [] execVM ""addons\zedfree\zedfree.sqf"";"; //adjust path to zedfree.sqf in your mission file
			expDesactiv="isSector = false; terminate clearzeds;";
			class Effects
			{
			};
		};

here is the zedfree.sqf:

		while {isSector} do 
		{
			{
				if (!isNull _x) then {
					if !(isPlayer _x) then {
						deletevehicle _x;
					};
				};
			} forEach (vehicle player nearEntities ["zZombie_Base",800]); //Adjust radius again
			uiSleep 1;
		};
Link to comment
Share on other sites

  • 0

in your mission.sqm

find:

class Sensors {
items = 15 // This can be any number, increase it by one since we are adding a new sensor (please note counting starts with 0, so if the number here is 15, the last sensor you will find is item number 14


go to the end of the sensor list, if the last one is 14,  you will add item 15 like this: (and dont forget to increase the first item number by one (in this example to items=16)

		class Item15 //make sure this is the right number
		{
			position[]={22561,0,19635}; //add location of island {x, z, y}
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="ZedFreeSector";
			expCond="(player distance ZedFreeSector) < 800;"; //adjust radius to your needs
			expActiv="isSector = true; clearzeds = [] execVM ""addons\zedfree\zedfree.sqf"";"; //adjust path to zedfree.sqf in your mission file
			expDesactiv="isSector = false; terminate clearzeds;";
			class Effects
			{
			};
		};
Link to comment
Share on other sites

  • 0

Apologies for the late reply.

 

Here is my mission.sqm

https://dl.dropboxusercontent.com/u/275706/mission.sqm

 

I have put the zedfree.sqf script in custom\zedfree

 

Full path:

X:\DAYZ_EPOCH_SERVER\MPMissions\DayZ_Epoch_7.Lingor\custom\zedfree

 

As you can see I am running a Lingor server.  The area still spawns zeds :-(  (Airfield on an island to the left of the map)

 

No errors in my rpt log or when starting/joining server.

 

Thank you for the help thus far :-)

Link to comment
Share on other sites

  • 0

hm it should be working, what is the exact path to the file ?

is it DayZ_Epoch_7.Lingor\Custom\zedfree.sqf or is it DayZ_Epoch_7.Lingor\Custom\zedfree\zedfree.sqf

Link to comment
Share on other sites

  • 0

Exact path is:

DayZ_Epoch_7.Lingor\Custom\zedfree\zedfree.sqf

 

Sorry, forgot to at the zedfree.sqf on my path above.

 

Massive face palm imminent..
My co-ords were wrong when I added the sensor to the mission.sqm.

All working now :-D

Thank you so so much for this!

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...