Jump to content
  • 0

Remove / Kill zombies near a plot pole


jgalla5400

Question

4 answers to this question

Recommended Posts

  • 0

Hey :)

 

Well, there's this:  by MadMartyr :)

 

Note: It doesn't seem to kill them, just TP them away. If you want them to die, then edit his script to be like this (full kudos/credit to MadMartyr, I only tweaking one line, the credit is ALL his!) :)

 

NOTE: You still NEED to visit the thead above to add the code to your init.sqf and also to check the battleye kicks ;)

//---------------------------------------------------------------------
// Epoch Base Safe Area
// By MadMartyr
// Modified from generic ZombieShield code by felixberndt and meat
// http://opendayz.net/threads/prevent-zombie-spawning.8799/#post-32461
//---------------------------------------------------------------------


while {true} do {
  sleep 10;


  // No Zeds near Plot Poles
  _playerPos = getPos player;
  _nearPole = nearestObject [_playerPos, "Plastic_Pole_EP1_DZ"];
  if (!isNull _nearPole) then {
    _pos2 = getPos _nearPole;
    _zombies2 = _pos2 nearEntities ["zZombie_Base", dayz_poleSafeArea];
    _count2 = count _zombies2;
    for "_i" from 0 to (_count2 -1) do
    {
      _zombie2 = _zombies2 select _i;
     _zombie2 setDamage 1; // This kills the Zs
     deletevehicle _zombie2; // This makes them vanish - keep ya base tidy!
    };
  };
};

Again, do visit this thread and full credit to Mad :)

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