how to remove ai from my safezones?

ka3ant1p

Member
Shooting bots in the safezone annoy me and my players greatly, I've tried to remove them with a help of some type of nuker zed script but the scripts is calling by sensors in mission.sqm to decrease server load, but I have a problem that traders also dissaper.
Here is the script i used to remove bots:
Code:
if (isNil "zombiefree") then {
    zombiefree = false;
};

while {zombiefree} do {
            _entity_array = (getPos player) nearEntities ["CAManBase",110];
            {
                if (_x isKindof "zZombie_Base") then {
                    deletevehicle _x;
                };
                if (! isPlayer _x ) then {
                    deletevehicle _x;
                };
            } forEach _entity_array;
            sleep 3;
        };
Is there a posibility to force it delete only bots?
I don't really know which bots are exactly used? because I have a folder called DZAI ut also I have reference about sarge in my server_cleanup.fsm

While searching the answer I have seen in my dzai_config a DZAI_dynBlacklist = []; but I have DZAI_V2dynSpawns = true; so it wouldn't work, although I amalso interesting how to add my safezones to DZAI_dynBlacklist = []; for future.

Thanks beforehand and sorry for my English it is not my native language, hello from Kiev, Ukraine =)
 
Back
Top