I am trying to get a anti-zombie shield to work for my trader cities.
Right now I am using a made one by Sarge that is supposed to trigger for coords, in which to stop and kill the zombies from spawning, but for some reason it does not want to work.
private["_location","_radius","_nuker","_obj_text_string"]; if(!isServer) exitwith{}; _location = _this select 0; _radius = _this select 1; _nuker = createvehicle ["Sign_sphere25cm_EP1",[_location select 0,_location select 1,1] ,[],0,"NONE"]; _nuker allowDamage false; _obj_text_string = format["#(argb,8,8,3)color(%1,%2,%3,%4,ca)",1,1,0,1]; [nil,nil,rSETOBJECTTEXTURE,_nuker,0,_obj_text_string] call RE; [_nuker,_radius] spawn { private ["_nuker","_radius","_entity_array"]; _nuker = _this select 0; _radius = _this select 1; while {true} do { _entity_array = (getPos _nuker) nearEntities ["CAManBase",_radius]; { if (_x isKindof "zZombie_Base") then { _x setDamage 1; }; } forEach _entity_array; sleep 2; }; };
I am using nuker to get kill the zombies, not sure if I did it correct.
I am trigging it from the init.sqf file which is like this
[[6325.6772,304.99033,7807.7412],400] execVM "AGN\NoZeds.sqf";
But the zombies still spawn in that area.