Jump to content

Disallow sapper/drone spawn in defined areas


Metalfoundry

Recommended Posts

  • 5 weeks later...

... or use a sensor with this:

_sapperclasses = ["Epoch_Cloak_F","Epoch_Sapper_F"];
_Distance = 25;
if(isNil "inSapFreeZone")then{inSapFreeZone = false;};
while{alive player}do{
	if(inSapFreeZone)then{
		_sappers = nearestObjects [player,_sapperclasses, _Distance];
		if(count _sappers > 0)then{{deleteVehicle _x}count _sappers;};
	};
	sleep 1;
};

obviusly you will need to add the remaining sappers or whatever into the array ...

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