Jump to content
  • 0

Sarge AI static spawn not working


TheCorey28

Question

I'm trying to spawn static ai on my epoch server, but they don't show up.

The dynamic spawning is working fine and dandy. I'm hoping someone will point out a mistake I made, cause I can't figure it out.  :)

Here's part of the SAR_cfg_grps_tavi.sqf:

 

// ---------------------------------------------------------------
// Definition of area markers for static spawns
// ---------------------------------------------------------------
 
// add if needed, see examples in the chernarus file
 
// Sabina, heli patrol area
    _this = createMarker ["SAR_patrol_sabina", [14894.9, 11081.3]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [1000, 4500];
    SAR_marker_helipatrol_sabina = _this;
 
    // Lyepestok, heli patrol area
    _this = createMarker ["SAR_patrol_lyepestok", [11579.5, 15413.4]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [400, 400];
    SAR_marker_helipatrol_lyepestok = _this;
 
    // NWAF, heli patrol area
    _this = createMarker ["SAR_patrol_nwaf", [10567, 18429.6]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [800, 1000];
    SAR_marker_helipatrol_nwaf = _this;
 
    // Dubovo, heli patrol area
    _this = createMarker ["SAR_patrol_dubovo", [16540.9, 12674.3]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [500, 5000];
    SAR_marker_helipatrol_dubovo = _this;
 
 
    // Krasnoznamensk, heli patrol area
    _this = createMarker ["SAR_patrol_kraz", [8482.28, 8101.42]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [500, 1700];
    _this setMarkerDir 262.10;
    SAR_marker_helipatrol_kraz = _this;
    
    
    // Branibor, heli patrol area
    _this = createMarker ["SAR_patrol_branibor", [7206.91, 4933.56]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [400, 5000];
    _this setMarkerDir 127.30;
    SAR_marker_helipatrol_branibor = _this;
 
// Static AI Spawn Test
_this = createMarker ["SAR_patrol1",[10913.4,17315.5,0.002]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
SAR_patrol1 = _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
//
 
    //Heli Patrol Sabina
    [sAR_marker_helipatrol_sabina,3] call SAR_AI_heli;
 
    //Heli Patrol Lyepestok
    [sAR_marker_helipatrol_lyepestok,3] call SAR_AI_heli;
 
    //Heli patrol NWAF
    [sAR_marker_helipatrol_nwaf,3] call SAR_AI_heli;
    
    //Heli patrol Dubovo
    [sAR_marker_helipatrol_dubovo,3] call SAR_AI_heli;
 
    //Heli patrol Krasnoznamensk
    [sAR_marker_helipatrol_kraz,3] call SAR_AI_heli;
    
    //Heli patrol Branibor
    [sAR_marker_helipatrol_branibor,3] call SAR_AI_heli;
    
 
    // add if needed, see examples in the chernarus file
 
    
    
diag_log format["SAR_AI: Static Spawning for Helicopter patrols finished"];
 
//---------------------------------------------------------------------------------
// Static, predefined infantry patrols in defined areas with configurable units
//---------------------------------------------------------------------------------
// Example: [sAR_area_DEBUG,1,0,1,""] call SAR_AI;
// 
// SAR_area_DEBUG = areaname (must have been defined further up)
// 1 = type of group (1 = soldiers, 2 = survivors, 3 = bandits)
// 0 = amount of snipers in the group
// 1 = amount of rifleman in the group
//
//
 
// Example entries:
// SARGE DEBUG - Debug group
// military, 0 snipers, 1 riflemen, patrol
//[sAR_area_DEBUG,1,0,1,""] call SAR_AI;
 
// military, 2 snipers, 4 riflemen, patrol
//[sAR_area_DEBUG,1,2,4,""] call SAR_AI;
 
// survivors, 1 snipers, 3 riflemen, patrolling the NWAF
//[sAR_marker_helipatrol_nwaf,2,1,3,""] call SAR_AI;
 
// bandits, 5 snipers, 2 riflemen, patrolling the NWAF
//[sAR_marker_helipatrol_nwaf,3,5,2,""] call SAR_AI;
//---------------------------------------------------------------------------------
 
 
    // add here if needed
 
// Test AI
[sAR_patrol1,1,0,3,"",true] call SAR_AI;
 
 
 
 
// ---- end of configuration area ----
 
diag_log format["SAR_AI: Static Spawning for infantry patrols finished"];

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Best AI's I have used are the Wicked AI missions, I know that 90% of players hate just driving down the road and being shot by some random AI. But I know the Wicked AI have a patrol system in there but I have never tried it. Its also the easiest thing ever to install

Link to comment
Share on other sites

  • 0

Looking at your script   the create marker name SAR_whatever_whatever 

 

should match the ending line of each segment with same name

 

// Sabina, heli patrol area
    _this = createMarker ["SAR_patrol_sabina", [14894.9, 11081.3]];
    _this setMarkerShape "RECTANGLE";
    _this setMarkeralpha 0;
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _this setMarkerSize [1000, 4500];
    SAR_patrol_sabina = _this;
 
that could be your problem but then I am still learning
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
  • Discord

×
×
  • Create New...