Okay, I solved the problem now by just adding in the radius search in Bot_Zombie and everything works as intended.
Locking the thread, thanks for the help everyone.
function ZombieHoleBot::onBotLoop(%this,%obj)
{
//BreakBrickTest(%obj);
//schedule(%obj.getDatablock().hTickRate/2,0,BreakBrickTest,%obj);
%radius = 10000;
%searchMasks = $TypeMasks::ProjectileObjectType;
InitContainerRadiusSearch(%pos, %radius, %searchMasks);
while ((%targetid = containerSearchNext()) != 0 )
{
if(%targetid.dataBlock.getID() == sPipeBombProjectile.getID())
{
%obj.setmoveobject(%targetid);
%obj.setaimobject(%targetid);
%obj.emote("alarmProjectile");
}
}
}