Static ai not spawning No helis / No static patrols

Atlas

New Member
Heya guys just quick problem here, any of my static ai are not spawning as in helis and patrols i would set up. BTW Sarge awesome addon the ais are really fun to have and adds a whole lotta life to Chernarus.

im running Dayz 1.7.6.1
latest Reality Dayz build

I have no problems with dynamic ai , theyre great ecpet when i turn around and they steal my car :p

Code:
//
// Definition of area markers for static spawns
//
 
// soutcoast, heli patrol area
_this = createMarker ["SAR_patrol_soutcoast", [7997.2837, 2687.6707]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [6500, 1200];
SAR_marker_helipatrol_southcoast = _this;
 
// eastcoast, heli patrol area
_this = createMarker ["SAR_patrol_eastcoast", [13304.196, 8220.9795]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1200, 6000];
SAR_marker_helipatrol_eastcoast = _this;
 
// NWAF, heli patrol area
_this = createMarker ["SAR_patrol_NWAF", [4525.3335, 10292.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1500, 500];
_this setMarkerDir 59.354115;
SAR_marker_helipatrol_nwaf = _this;
 
// NEAF, heli patrol area
_this = createMarker ["SAR_patrol_NEAF", [12034.16, 12725.376, 0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1000, 600];
SAR_marker_helipatrol_neaf = _this;
 
// SAR DEBUG AREA - at NWAF
_this = createMarker ["SAR_marker_DEBUG", [4600.3335, 10240.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_this setMarkerDir 59.354115;
SAR_marker_DEBUG = _this;
 
// SAR DEBUG AREA - at Skaly
_this = createMarker ["SAR_marker_DEBUG1", [2519.3335, 13140.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
SAR_marker_DEBUG1 = _this;
 
// skalitsky defense
_this = createMarker ["SAR_patrol_skal", [3751.51, 5910.5]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_base = _this;
 
// krutoy ambush
_this = createMarker ["SAR_patrol_krutoy", [13407.8, 4214.25]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_road = _this;
 
// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------
 
diag_log format["SAR_AI: Area & Trigger definition finalized"];
diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];
 
//
// Static, predefined heli patrol areas with configurable units
//
// Parameters used:
//                  Areaname
//                  1,2,3 = soldier, survivors, bandits
//
//                  respawn
//                  true or false
 
//Heli Patrol NWAF
[SAR_marker_helipatrol_nwaf,1,true] call SAR_AI_heli;
 
//Heli Patrol NEAF
[SAR_marker_helipatrol_neaf,1,true] call SAR_AI_heli;
 
// Heli patrol south coast
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
 
// heli patrol east coast
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
 
diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
 
//---------------------------------------------------------------------------------
// Static, predefined infantry patrols in defined areas with configurable units
//---------------------------------------------------------------------------------
// Example: [SAR_marker_DEBUG,1,0,1,"",true] call SAR_AI;
//
// SAR_marker_DEBUG = areaname (must have been defined further up, and MUST NOT BE similar to SAR_area_ ! THIS IS IMPORTANT!
// 1 = type of group (1 = soldiers, 2 = survivors, 3 = bandits)
// 0 = amount of snipers in the group
// 1 = amount of rifleman in the group
// "" = action, possible values: "noupsmon","fortify","ambush","patrol"
// true = respawning group, true or false
 
// Example entries:
// SARGE DEBUG - Debug group
// military, 0 snipers, 1 riflemen, patrol
//[SAR_marker_DEBUG,1,0,1,"fortify",true] call SAR_AI;
 
//[SAR_marker_DEBUG1,1,0,2,"patrol",false] call SAR_AI;
//[SAR_marker_DEBUG1,2,0,2,"patrol",false] call SAR_AI;
 
//---------------------------------------------------------------------------------
 
// add here if needed
 
// skalitsky defense
[SAR_marker_base,1,5,10,"patrol",true] call SAR_AI;
 
// krutoy ambush
[SAR_marker_road,3,2,5,"patrol",true] call SAR_AI;
 
// ---- end of configuration area ----
 
diag_log format["SAR_AI: Static Spawning for infantry and heli patrols finished"];

can any one help out it would be greatly appreciated.

thank you

Atlas$
 
Heya guys just quick problem here, any of my static ai are not spawning as in helis and patrols i would set up. BTW Sarge awesome addon the ais are really fun to have and adds a whole lotta life to Chernarus.

im running Dayz 1.7.6.1
latest Reality Dayz build

I have no problems with dynamic ai , theyre great ecpet when i turn around and they steal my car :p

Code:
//
// Definition of area markers for static spawns
//
 
// soutcoast, heli patrol area
_this = createMarker ["SAR_patrol_soutcoast", [7997.2837, 2687.6707]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [6500, 1200];
SAR_marker_helipatrol_southcoast = _this;
 
// eastcoast, heli patrol area
_this = createMarker ["SAR_patrol_eastcoast", [13304.196, 8220.9795]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1200, 6000];
SAR_marker_helipatrol_eastcoast = _this;
 
// NWAF, heli patrol area
_this = createMarker ["SAR_patrol_NWAF", [4525.3335, 10292.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1500, 500];
_this setMarkerDir 59.354115;
SAR_marker_helipatrol_nwaf = _this;
 
// NEAF, heli patrol area
_this = createMarker ["SAR_patrol_NEAF", [12034.16, 12725.376, 0]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1000, 600];
SAR_marker_helipatrol_neaf = _this;
 
// SAR DEBUG AREA - at NWAF
_this = createMarker ["SAR_marker_DEBUG", [4600.3335, 10240.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_this setMarkerDir 59.354115;
SAR_marker_DEBUG = _this;
 
// SAR DEBUG AREA - at Skaly
_this = createMarker ["SAR_marker_DEBUG1", [2519.3335, 13140.299]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 1;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
SAR_marker_DEBUG1 = _this;
 
// skalitsky defense
_this = createMarker ["SAR_patrol_skal", [3751.51, 5910.5]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_base = _this;
 
// krutoy ambush
_this = createMarker ["SAR_patrol_krutoy", [13407.8, 4214.25]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_road = _this;
 
// ----------------------------------------------------------------------------------------
// End of area marker definition section
// ----------------------------------------------------------------------------------------
 
diag_log format["SAR_AI: Area & Trigger definition finalized"];
diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];
 
//
// Static, predefined heli patrol areas with configurable units
//
// Parameters used:
//                  Areaname
//                  1,2,3 = soldier, survivors, bandits
//
//                  respawn
//                  true or false
 
//Heli Patrol NWAF
[SAR_marker_helipatrol_nwaf,1,true] call SAR_AI_heli;
 
//Heli Patrol NEAF
[SAR_marker_helipatrol_neaf,1,true] call SAR_AI_heli;
 
// Heli patrol south coast
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
 
// heli patrol east coast
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
 
diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
 
//---------------------------------------------------------------------------------
// Static, predefined infantry patrols in defined areas with configurable units
//---------------------------------------------------------------------------------
// Example: [SAR_marker_DEBUG,1,0,1,"",true] call SAR_AI;
//
// SAR_marker_DEBUG = areaname (must have been defined further up, and MUST NOT BE similar to SAR_area_ ! THIS IS IMPORTANT!
// 1 = type of group (1 = soldiers, 2 = survivors, 3 = bandits)
// 0 = amount of snipers in the group
// 1 = amount of rifleman in the group
// "" = action, possible values: "noupsmon","fortify","ambush","patrol"
// true = respawning group, true or false
 
// Example entries:
// SARGE DEBUG - Debug group
// military, 0 snipers, 1 riflemen, patrol
//[SAR_marker_DEBUG,1,0,1,"fortify",true] call SAR_AI;
 
//[SAR_marker_DEBUG1,1,0,2,"patrol",false] call SAR_AI;
//[SAR_marker_DEBUG1,2,0,2,"patrol",false] call SAR_AI;
 
//---------------------------------------------------------------------------------
 
// add here if needed
 
// skalitsky defense
[SAR_marker_base,1,5,10,"patrol",true] call SAR_AI;
 
// krutoy ambush
[SAR_marker_road,3,2,5,"patrol",true] call SAR_AI;
 
// ---- end of configuration area ----
 
diag_log format["SAR_AI: Static Spawning for infantry and heli patrols finished"];

can any one help out it would be greatly appreciated.

thank you

Atlas$

config looks good to me. switch on the debug levels and check your rpt.
 
I am having the same issue, no heli patrols are spawning and nothing shows up in the rpt about heli spawns. Just thinking I missed something that needs to be turned on. Ground AI works fine just no helis. Also noticed that AI does not use any vehicles. Does the AI steal vehicle need to be enabled?
 
I'll get stuck at w8 for host, got an overwatch server, my mission files are already unpacked in the mission folder, any solutions?
 
Got the same problem, static just wont spawn. here my configs:

Code:
// enable or disable dynamic grid spawning
// -----------------------------------------------
SAR_dynamic_spawning = true;
 
// -----------------------------------------------
// enable or disable the AI debug monitor
// -----------------------------------------------
 
SAR_DEBUGMONITOR= true;
 
// -----------------------------------------------
// default values for dynamic grid spawning
// -----------------------------------------------
 
// maximum number of groups / grid
SAR_max_grps_bandits = 1;
SAR_max_grps_soldiers = 1;
SAR_max_grps_survivors = 1;
 
// chance for a group to spawn (1-100)
SAR_chance_bandits = 75;
SAR_chance_soldiers = 30;
SAR_chance_survivors = 50;
 
// maximum size of group (including Leader)
SAR_max_grpsize_bandits = 4;
SAR_max_grpsize_soldiers = 5;
SAR_max_grpsize_survivors = 4;

Code:
// NWAF, 0 bandit groups, 2 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
    [["max_grps","rnd_grps","max_p_grp"],[[3,0,0],[90,0,0],[4,0,0]],"SAR_area_1_4"] call SAR_AI_mon_upd;
 
 
 
    diag_log format["SAR_AI: Dynamic spawning definition / adjustments finished"];
 
 
 
};
//
// Definition of area markers for static spawns
//
 
diag_log format["SAR_AI: Static spawning area definition started"];
 
// kamenka
_this = createMarker ["SAR_area_KAMENKA", [1289.4,2396.21,0.001]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerDir 120.050;
SAR_marker_kamenka = _this;
 
diag_log format["SAR_AI: Static spawning area definition finished"];
 
 
diag_log format["SAR_AI: Static Spawning for Helicopter patrols started"];
 
//
// define your static air patrols here
//
 
//Heli Patrol NWAF
[SAR_marker_helipatrol_nwaf,1,true] call SAR_AI_heli;
 
//Heli Patrol NEAF
[SAR_marker_helipatrol_neaf,1,true] call SAR_AI_heli;
 
// Heli patrol south coast
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_southcoast,1,true] call SAR_AI_heli;
 
// heli patrol east coast
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
[SAR_marker_helipatrol_eastcoast,1,true] call SAR_AI_heli;
 
 
// example war scenario in the northwest. Comment OUT after having had a look at it!
[SAR_marker_DEBUG_veh,1,true,30] call SAR_AI_heli;
[SAR_marker_DEBUG_veh,1,true,30] call SAR_AI_heli;
[SAR_marker_DEBUG_veh,3,true,30] call SAR_AI_heli;
[SAR_marker_DEBUG_veh,3,true,30] call SAR_AI_heli;
 
 
diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
 
...
 
diag_log format["SAR_AI: Static Spawning for infantry patrols started"];
 
//
// define your static infantry patrols here
//
 
//Admin Base Protection
[SAR_marker_kamenka,3,2,4,"fortify",true�] call SAR_AI;
 
diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];
 
// -------------------------------------------------------------------------------------

Dynamic spawns work fine but static just wont spawn: and if i change dynamic to false nothing spawns aswell. Don't know what else i can try to add static patrols. Btw. i'm Hosting Epoch.
 
Managed to get it working on Epoch.
just changed:
Code:
//Admin Base Protection
[SAR_marker_kamenka,3,2,4,"fortify",true] call SAR_AI;

to:
Code:
//Admin Base Protection
[SAR_marker_kamenka,3,2,4,""] call SAR_AI;

But now my static soldiers attack every player and behave like bandits. Thats my settings on SAR_config.sqf

Code:
// -----------------------------------------------
// Humanity values
// -----------------------------------------------
 
// Humanity Value that gets substracted for a survivor or soldier AI kill
SAR_surv_kill_value = 250;
 
// Humanity Value that gets ADDED for a bandit AI kill
SAR_band_kill_value = 100;
 
// the humanity value below which a player will be considered hostile
SAR_HUMANITY_HOSTILE_LIMIT = -5000;

any suggestion how i can change soldiers to just attack Bandits?
 
Managed to get it working on Epoch.
just changed:
Code:
//Admin Base Protection
[SAR_marker_kamenka,3,2,4,"fortify",true] call SAR_AI;

to:
Code:
//Admin Base Protection
[SAR_marker_kamenka,3,2,4,""] call SAR_AI;

But now my static soldiers attack every player and behave like bandits. Thats my settings on SAR_config.sqf

Code:
// -----------------------------------------------
// Humanity values
// -----------------------------------------------
 
// Humanity Value that gets substracted for a survivor or soldier AI kill
SAR_surv_kill_value = 250;
 
// Humanity Value that gets ADDED for a bandit AI kill
SAR_band_kill_value = 100;
 
// the humanity value below which a player will be considered hostile
SAR_HUMANITY_HOSTILE_LIMIT = -5000;

any suggestion how i can change soldiers to just attack Bandits?

In your original post, there is an unknown chracter after "fortify",true
That may be what was causing them not to spawn.

As for them 'behaving like bandits', that's because you've set them to be bandits. :p Change the 3 to a 1 for military AI.
 
ya sry pasted old codes, i have no foreign character and put a 1 in.
they do spawn as military but attacking everyone.

i also have a faction.sqf from my missions and someone said i could delete it cause sarge ai already has this settings. is this true?

faction.sqf
Code:
waitUntil{initialized};
//Only create these if they aren't already
createCenter east;
createCenter resistance;
//Survivors
WEST setFriend [RESISTANCE,0];
WEST setFriend [EAST,0];
//AI Units
EAST setFriend [RESISTANCE,0];
EAST setFriend [WEST,0];
EAST setFriend [CIVILIAN,0];//AI Units attack zeds
CIVILIAN setFriend [EAST,0];//Zeds attack AI units
//Unused
RESISTANCE setFriend [WEST,1];
RESISTANCE setFriend [EAST,0];
 
I'd say it would be worth removing it and seeing if it stops the problem with Sarge AI yes, since it isn't designed to work with this it may well be conflicting with the Sarge settings.
 
Back
Top