Jump to content

[Release] Safezone AI shield.


Recommended Posts

This should do it to:

private ["_pos","_range"];

//_pos = [123,456,789];

_pos = getMarkerPos "MarkerName";

_range = 1000;

{

if(!(isAgent _x)) then {

deletevehicle _x;

};

} count (_pos nearEntities ["CaManBase", "Man", "zZombie_base", _range]);

Link to comment
Share on other sites

This should do it to:

private ["_pos","_range"];

//_pos = [123,456,789];

_pos = getMarkerPos "MarkerName";

_range = 1000;

{

if(!(isAgent _x)) then {

deletevehicle _x;

};

} count (_pos nearEntities ["CaManBase", "Man", "zZombie_base", _range]);

 

first off, i dont think thats how isagent works, second you need to loop it so it continues to do this as long as the player is in the safezone, third you only need to search for "zZombie_base" last but not least all zeds are agents!

Link to comment
Share on other sites

  • 2 years later...

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