Jump to content

Wicked AI/Mission system


Markk311

Recommended Posts

Actually, I might have it working now... cant test yet, too many players.

if(!isServer) exitWith {};
private ["_dot2","_position2","_Marker2","_name2"];
_position2 = _this select 0;
_name2 = _this select 1;

_Marker2 = "";
_dot2 = "";
markerready2 = false;
while {missionrunning2} do {
	_Marker2 = createMarker ["MissionBlue", _position2];
	_Marker2 setMarkerColor "ColorBlue";
	_Marker2 setMarkerShape "ELLIPSE";
	_Marker2 setMarkerBrush "Grid";
	_Marker2 setMarkerSize [300,300];
	_Marker2 setMarkerText _name2;
	_dot2 = createMarker ["dot2", _position2];
	_dot2 setMarkerColor "ColorBlack";
	_dot2 setMarkerType "mil_dot";
	_dot2 setMarkerText _name2;
	sleep 30;
	deleteMarker _Marker2;
	deleteMarker _dot2;
};
if (_Marker2 == "MissionBlue") then {
	deleteMarker _Marker2;
	deleteMarker _dot2;
};
markerready2 = true;
Link to comment
Share on other sites

I was wondering about the Helicopter crash mission.

 

Is there supposed to be loot spawning around the heli like the regular epoch heli crashes?

 

Because I'm not seeing any loot spawning around chopper so the only loot you get is off the AI bodies.

Link to comment
Share on other sites

I was wondering about the Helicopter crash mission.

 

Is there supposed to be loot spawning around the heli like the regular epoch heli crashes?

 

Because I'm not seeing any loot spawning around chopper so the only loot you get is off the AI bodies.

 

Pretty sure there is a bug in the code.

I changed line 2 to the one below and I believe it should get rid of the error i was having.

Untested at this point in time though.

_num = round(random _randomizedLoot) + _guaranteedLoot;
_config =        configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes =	[] + getArray (_config >> "itemType");
_index =        dayz_CBLBase find toLower(_lootTable);
_weights =		dayz_CBLChances select _index;
_cntWeights = count _weights;

Line 2 was this:

_config = 		missionconfigFile >> "CfgBuildingLoot" >> _lootTable;
Link to comment
Share on other sites

Hux, glad you got it sorted.

 

HollowAddiction, did you set the gearset you added the hemp to in the spawn setup?

 

xXNoRegsXx  it sounds like somethings installed incorectly.  Those files will be called from the default epoch PBOS if there is not one present in your custom files, so if it can't find them something larger is afoot.

 

 

I think so, what do you mean by spawn setup?

 

this is what i did

in the customspawns.sqf i added

 

//Hemp Fields
[[10265.874, 4637.8462, -9.1552734e-005], //position
5,                                         //Number Of units
1,                                         //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",                                         //Primary gun set number. "Random" for random weapon set.
2,                                         //Number of magazines
"DZ_LargeGunBag_EP1",  //Backpack "" for random or classname here.
"Bandit2_DZ",                      //Skin "" for random or classname here.
5                                         //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
and in the AIconfig.sqf i added
 
/// 5 ///
ai_gear5 = [
["ItemBandage","ItemBandage","ItemPainkiller","ItemKiloHemp"],
["ItemKnife","ItemRadio","ItemFlashlight"]
];
 
 
any idea what i missed?
Link to comment
Share on other sites

hey guys i been running this mission file on my panthera map and missions are perfect. i recently added ai city to the island on the bottom left of the map and decided to add AI from the WAI custom_spawns.sqf.

 

so my problem is i can get 1 AI group to spawn with no problem but the rest of the groups dont spawn.

if i delete the group that spawns then the second group will spawn but not the third. wrecked my head trying to fix this so does anyone know if they is a problem with this?

 

//Custom Spawns file//
/*
Custom group spawns Eg.
 
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
 
[[441.295,319.657,0.00143886],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[419.033,315.894,0.00143838],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[496.225,483.173,0.00144482],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[480.266,476.691,0.0014472],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[484.582,477.715,0.00144482],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[515.599,471.463,0.00142479],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[505.216,421.477,0.00143862],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[476.601,441.191,0.00143909],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;     
[[381.499,377.271,0.00143886],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;   
[[403.493,456.832,0.00142837],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
[[534.097,285.733,0.00132895],4,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      
 
 
 
/*
 
this is my code and from wat i know is all fine due to the AI spawning but not the 2nd + groups
Link to comment
Share on other sites

 

hey guys i been running this mission file on my panthera map and missions are perfect. i recently added ai city to the island on the bottom left of the map and decided to add AI from the WAI custom_spawns.sqf.

 

so my problem is i can get 1 AI group to spawn with no problem but the rest of the groups dont spawn.

if i delete the group that spawns then the second group will spawn but not the third. wrecked my head trying to fix this so does anyone know if they is a problem with this?

 

You only have one custom mission there, are you thinking it will draw from the list of spawn below?

you need to make a new mission

 

 

you have this:

 

[
[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
 
so do this:
//custom mission 1
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/

 

 

//Custom mission 2

[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/

 

 

and so on. At least that what i did successfully

Link to comment
Share on other sites

i dont want to spawn in missions they work fine.

 

i just want to add static ai to my AI city i made but it only spawns 1 of my spawns and the others dont spawn.

 

or do i need to put the /* */ after each group to spawn them?

 

Forgive me i mispoke, static ai is what im referring to i just call them missions.

do it as i posted and it should work

Link to comment
Share on other sites

//Custom Spawns file//
/*
Custom group spawns Eg.
 
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
[[456.75,419.422,0], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
*/
 
[[441.295,319.657,0], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
*/
 
[[419.033,315.894,0], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
[[496.225,483.173,0], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
*/
 
[[480.266,476.691,0], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
*/
 
[[484.582,477.715,0], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
*/
 
[[515.599,471.463,0], //position
2,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
/*
 
 
still does not work
Link to comment
Share on other sites

 
//Custom Spawns file//
/*
Custom group spawns Eg.
 
//example spawn 1
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
 
// example spawn 2
[[13120.022, 10429.099, 0.001], //position
5,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 3
[[13120.022, 10429.099, 0.001], //position
5,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 4
[[10265.874, 4637.8462, -9.1552734e-005], //position
5,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",              //Primary gun set number. "Random" for random weapon set.
2,  //Number of magazines
"DZ_LargeGunBag_EP1",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[10265.874, 4637.8462, -9.1552734e-005], //position
5,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
/*
Custom static weapon spawns Eg. (with one position)
 
[[[911.21545,4532.7612,2.6292224]], //position(s) (can be multiple).
"M2StaticMG",             //Classname of turret
0.5,  //Skill level 0-1. Has no effect if using custom skills
"Bandit2_DZ",  //Skin "" for random or classname here.
1,  //Primary gun set number. "Random" for random weapon set. (not needed if ai_static_useweapon = False)
2,  //Number of magazines. (not needed if ai_static_useweapon = False)
"",  //Backpack "" for random or classname here. (not needed if ai_static_useweapon = False)
"Random"  //Gearset number. "Random" for random gear set. (not needed if ai_static_useweapon = False)
] call spawn_static;
 
Custom static weapon spawns Eg. (with mutiple positions)
 
[[[911.21545,4532.7612,2.6292224],[921.21545,4532.7612,2.6292224]], //position(s) (can be multiple).
"M2StaticMG",             //Classname of turret
0.5,  //Skill level 0-1. Has no effect if using custom skills
"Bandit2_DZ",  //Skin "" for random or classname here. 
1,  //Primary gun set number. "Random" for random weapon set. (not needed if ai_static_useweapon = False)
2,  //Number of magazines. (not needed if ai_static_useweapon = False)
"",  //Backpack "" for random or classname here. (not needed if ai_static_useweapon = False)
"Random"  //Gearset number. "Random" for random gear set. (not needed if ai_static_useweapon = False)
] call spawn_static;
 
Place your custom static weapon spawns below
*/

 

 

 

 

 

 

 

give that a try

Link to comment
Share on other sites

//Custom Spawns file//
/*
Custom group spawns Eg.
 
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
 
//example spawn 2
[[456.75,419.422,0.00143886], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 3
[[441.295,319.657,0.00143886], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 4
[[419.033,315.894,0.00143838], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 5
[[496.225,483.173,0.00144482], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 6
[[480.266,476.691,0.0014472], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 7
[[484.582,477.715,0.00144482], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 8
[[515.599,471.463,0.00142479], //position
2,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 9
[[500.635,422.405,0.00143862], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
/*
 
ok named it example to be precise i know it can be changed but the format look ok here?
Link to comment
Share on other sites

 

//Custom Spawns file//
/*
Custom group spawns Eg.
 
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
Place your custom group spawns below
*/
 
//example spawn 2
[[456.75,419.422,0.00143886], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 3
[[441.295,319.657,0.00143886], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 4
[[419.033,315.894,0.00143838], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 5
[[496.225,483.173,0.00144482], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 6
[[480.266,476.691,0.0014472], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 7
[[484.582,477.715,0.00144482], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 8
[[515.599,471.463,0.00142479], //position
2,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
//example spawn 9
[[500.635,422.405,0.00143862], //position
1,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"5",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
/*
 
ok named it example to be precise i know it can be changed but the format look ok here?

 

 

and the issue your having is spawn 1 works while the others do not?

Link to comment
Share on other sites

want me to just copy and paste that file into my custom_spawns.sqf?

I'm actually having the same problem as this guy... I'll post my code but going through and reading HollowAddiction's posts I don't think we're addressing the right issue. As you can see mine is set up like yours, and no matter what it only spawns the first group on the list... here is my list...

 

Place your custom group spawns below

*/
 
[[11904.5,20995.4,0.001], //FRONT ENTRANCE
36,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[11973.2,21023.1,0.001], //MilWarehouse
6,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
[[11840.4,21138.4,0.161], //Hospital Interior
2,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[11888.6,21088.3,0.001], //Snip1
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[11918.5,21087.8,0.001], //Snip2
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[11956.8,20989.4,0.179], //Bunker1
3,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
[[11855.8,20989.2,0.179], //Bunker2
3,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"Random",      //Primary gun set number. "Random" for random weapon set.
4,  //Number of magazines
"",  //Backpack "" for random or classname here.
"Bandit2_DZ",  //Skin "" for random or classname here.
"Random"                  //Gearset number. "Random" for random gear set.
] call spawn_group;
 
 
 
/*
Custom static weapon spawns Eg. (with one position)

 

I went a little further and left in the line below it to show that it is finished correctly. This exact code only spawns the #1 group. I'm not sure if it's related but I also couldn't get the static ai heli patrol working.

 

 

 

I'm having another problem as well, they are pretty friendly AI. If I don't shoot at them they just let me walk around, which is no good because they need to be defending loot. 

 

Here is a video exemplifying the issue.... 

Link to comment
Share on other sites

the 1 ai group i have spawn are really spot on..they shoot you fast and accurate.

 

maybe change the skill levels

 

/// Custom skill array. Use 1 to use this with ai_custom_skills = True 

ai_custom_array2 = [
["aimingAccuracy",0.15],
["aimingShake",0.20],
["aimingSpeed",1.00],
["endurance",1.00],
["spotDistance",1.00],
["spotTime",1.00],
["courage",1.00],
["reloadSpeed",1.00],
["commanding",1.00],
["general",1.00]
];
 
dont know if u have or not but the higher value each skill the harder they become ( this is in AIconfig.sqf)
 
also dont know if this is right or wrong but low fps on server can cause them to become stupid etc
Link to comment
Share on other sites

 

Pretty sure there is a bug in the code.

I changed line 2 to the one below and I believe it should get rid of the error i was having.

Untested at this point in time though.

_num = round(random _randomizedLoot) + _guaranteedLoot;
_config =        configFile >> "CfgBuildingLoot" >> _lootTable;
_itemTypes =	[] + getArray (_config >> "itemType");
_index =        dayz_CBLBase find toLower(_lootTable);
_weights =		dayz_CBLChances select _index;
_cntWeights = count _weights;

Line 2 was this:

_config = 		missionconfigFile >> "CfgBuildingLoot" >> _lootTable;

 

Have you had a chance to test this?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...