Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
1st of all: awesome map addition...our players love it
There is only 1 Problem - is it possible to turn off the zombie spawn in this area ?
thanks in advance
[[6635.3984, 14262.761,0],2000] execVM "sectorfng\safezoneFNG.sqf";
/*
Author: Sarge
Description:
Kills all zombies in a given distance from a given point.
Needs 2 parameters:
_location = the exact x/y/z location of the center of the area that should be zed free
_range = the radius within which zeds get killed
*/
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;
};
};
In my init.sqf, I have:
Code:[[6635.3984, 14262.761,0],2000] execVM "sectorfng\safezoneFNG.sqf";
And then in my sectorfng folder I have a safezoneFNG.sqf which reads:
Code:/* Author: Sarge Description: Kills all zombies in a given distance from a given point. Needs 2 parameters: _location = the exact x/y/z location of the center of the area that should be zed free _range = the radius within which zeds get killed */ 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; }; };
Hope this helps.
Seen this and had to add it just what we have been looking for. Only one problem the Ais are spawning in with no guns any idea how to fix this ? any help would be nice thanks..
[SAR_marker_sectorfng_front,3,6,15,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_back,3,6,15,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_crate1,3,6,15,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_crate2,3,6,10,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_crate3,3,6,10,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_crate4,3,6,15,"fortify",true,600] call SAR_AI;
[SAR_marker_sectorfng_crate5,3,8,15,"fortify",true,600] call SAR_AI;
_this addmagazineCargoGlobal ["ItemBriefcase100oz",5];
diag_log format["SAR_AI: Static Spawning for infantry patrols started"];
//
// define your static infantry patrols here
//
//Sector FNG Stuff
[SAR_marker_sectorfng_front,1,0,15,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_back,1,0,15,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_crate1,1,1,4,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_crate2,1,1,4,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_crate3,1,1,4,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_crate4,1,1,4,"fortify",true] call SAR_AI;
[SAR_marker_sectorfng_crate5,1,1,4,"fortify",true] call SAR_AI;
diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];];