alexlawson
OpenDayZ Rockstar!
Source: http://epochmod.com/forum/index.php?/topic/616-zombie-free-bases/
So what I want is to kill zombies that run within 60 meters from a plot pole.
I execute the script from the 'isDedicated' loop in the init.sqf.
This is the code I used.
I must be missing something since it doesn't work, any help is appreciated.
So what I want is to kill zombies that run within 60 meters from a plot pole.
I execute the script from the 'isDedicated' loop in the init.sqf.
This is the code I used.
Code:
// 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",60];
_count2 = count _zombies2;
for "_i" from 0 to (_count2 -1) do
{
_zombie2 = _zombies2 select _i;
_zombie2 setdamage 1;
};
};
I must be missing something since it doesn't work, any help is appreciated.