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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...