Can't get static spawn working...

Dusty Nuttles

Valued Member!
These locations are in Cherno...

// GROCERY STORE
_this = createMarker ["SAR_marker_admin", [6519.73,2288.87]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
_this setMarkerDir 120.050;
SAR_marker_DEBUG1 = _this;

// CHURCH TRAP
_this = createMarker ["SAR_area_admin", [6413.97,2740.93]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
_this setMarkerDir 120.050;
SAR_marker_DEBUG2 = _this;

--------------------------------------
//GROCERY STORE
[SAR_marker_DEBUG1,3,1,7,"fortify",true] call SAR_AI;

//CHURCH TRAP
[SAR_marker_DEBUG2,3,1,7,"fortify",true] call SAR_AI;

--------------------------------------
In my SAR_config.sqf I have the following...

SAR_dynamic_spawning = true;
--------------------------------------
In my SAR_cfg_grps_chernarus.sqf I have the following...

// Cherno, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[0,0,0],[0,0,0],[0,0,0]],"SAR_area_2_0"] call SAR_AI_mon_upd;
--------------------------------------
Does the above need to be set so the static spawns will work or should I have it like it is?
--------------------------------------
Also, I noticed this...
// SAR_AI - DayZ AI library
// Version: 1.0.0

The rest of my files I think say Version: 1.1.0...should the above say 1.1.0 as well? Could have sworn I got the latest version.

If someone can correct my mistake I would be grateful.

Thanks in advance.

-Dusty
 
// GROCERY STORE
_this = createMarker ["SAR_marker_debug1", [6519.73, 2288.87]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
_this setMarkerDir 120.050;
SAR_marker_debug1 = _this;

Fixed but the setMarkerSize seems a bit small, but I suppose if you defending just a building it should suite. The calls look fine. What I usually do is name the marker something besides debug. I would probably call this marker store but meh whatever floats your boat.

The code below spawns groups within the premade grid on your map. Has nothing to do with your static spawns you're trying to create.
// Cherno, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[0,0,0],[0,0,0],[0,0,0]],"SAR_area_2_0"] call SAR_AI_mon_upd;

The comments within the Framework itself give you a lot of answers to the questions quite a few people ask. Even the code itself will tell you a lot, if you look at it carefully and try to understand what's actually going on with the settings. Hope this helps.
 
Jman, I actually figured it out like 10 minutes after posting...this is what worked:

// GROCERY STORE
_this = createMarker ["SAR_marker_grocery", [6519.73,2288.87]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [5, 5];
_this setMarkerDir 120.050;
SAR_marker_DEBUG1 = _this;

Having 'debug1' or 'admin' up top wasn't working for me. Changed it to 'grocery' and bam works finally.

But hey, thanks for the replay man, much appreciated!
 
Back
Top