Jump to content
  • 0

help to remove ai from safezones


ka3ant1p

Question

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:
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 =)
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I suppose instead of deleting everything that isnt player blanket you could also check for the variable set by DZAI

so i should change it to 

if (! isPlayer DZAI ) then {
deletevehicle DZAI;

am I right?

I thought to make it with some kind of array as zZombie_Base made, I mean to make an array for example called bots_base where I will count all bots skins, because trader seems not to you use the same skins as bots do.

Link to comment
Share on other sites

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