Jump to content
  • 0

WAI custom spawns not working


carl101

Question

hi guys, iv chucked a couple of custom spawns together and they dont seem to be working much.

out of all my groups i have 2 ai spawning with no guns protecting abig town

 

my custom spawns

 

[[436.955,510.628,0.210],4,1,"random",4,"","","random"] call spawn_group;
[[413.045,483.674,0.001],4,1,"random",4,"","","random"] call spawn_group;
[[428.886,349.484,0.001],4,1,"random",4,"","","random"] call spawn_group;
[[517.518,432.3,0.001],4,1,"random",4,"","","random"] call spawn_group;
[[529.322,373.941,0.001],4,1,"random",4,"","","random"] call spawn_group;
[[513.2,316.673,0.001],4,1,"random",4,"","","random"] call spawn_group;
[[454.341,276.217,0.001],4,1,"random",4,"","","random"] call spawn_group;

 

[[529.322,373.941,0.001],[0,0,0],250,"uh1h_dz",5,1,"random",4,"","","random",false] spawn heli_para;

 

i thought maybe i need to switch round the coords ect but even the example shows i#them in this format

 

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;

 

 

 

RPT error

if (count Allowed>
15:24:33   Error Zero divisor
15:24:33 File z\addons\dayz_server\init\server_functions.sqf, line 266
15:24:33 "DEBUG: unable to find suitable vehicle to spawn"
15:24:34 Error in expression < _aigear select 0;
_geartools = _aigear select 1;
if (_skin == "") then {
_aiski>
15:24:34   Error position: <select 1;
if (_skin == "") then {
_aiski>
15:24:34   Error Zero divisor
15:24:34 File z\addons\dayz_server\WAI\compile\SpawnGroup.sqf, line 47
15:24:34 "WAI: Starting AI Missions Moniter"
15:24:35 Error in expression < _aigear select 0;
_geartools = _aigear select 1;
if (_skin == "") then {
_aiski>
15:24:35   Error position: <select 1;
if (_skin == "") then {
_aiski>

the line 47 which its referring to which i havnt touched

 

46.    _gearmagazines = _aigear select 0;
47.     _geartools = _aigear select 1;
48.     if (_skin == "") then {
49.        _aiskin = ai_skin call BIS_fnc_selectRandom;
50.      } else {
51.         _aiskin = _skin

 

 

 

any help is greatly apprecited

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Re- download the custom spawns again from the wai download . and insert this 

[[18788.277, 17259.93, 0.49666703],8,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box 

This will spawn 8 ai at that location. ofcourse change the location which is the long numbers at the beginning.

 

 

[[18788.277, 17259.93, 0.49666703],  //Position that units will be dropped by
[18788.277, 17259.93, 0.49666703],                           //Starting position of the heli
200,                               //Radius from drop position a player has to be to spawn chopper
"UH1H_DZ",                         //Classname of chopper (Make sure it has 2 gunner seats!)
10,                                 //Number of units to be para dropped
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.
True                               //True: Heli will stay at position and fight. False: Heli will leave if not under fire. 
] spawn heli_para;
 
 
Use that with your own locations for a paradrop of 10 which you can choose yourself.
 
MAKE SURE YOU PUT ANYTHING YOU WANT TO SPAWN INBETWEEN THE */ AND /*    E.G
 
Place your custom group spawns below
*/
 
[[18788.277, 17259.93, 0.49666703],8,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[18788.277, 17259.93, 0.49666703],8,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
 
 
 
 
/*
 
AND THAT WILL! WORK FINE.
Link to comment
Share on other sites

  • 0

Better yet Carl, put this in your custom_spawns.sqf

 

//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
*/
 
[[18788.277, 17259.93, 0.49666703],8,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[18788.277, 17259.93, 0.49666703],8,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
 
 
 
 
/*
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
*/
 
 
 
 
 
/*
Custom Chopper Patrol spawn Eg.
 
[[725.391,4526.06,0],    //Position to patrol
[0,0,0],             // Position to spawn chopper at
2000, //Radius of patrol
10,                     //Number of waypoints to give
"UH1H_DZ",        //Classname of vehicle (make sure it has driver and two gunners)
1 //Skill level of units 
] spawn heli_patrol;
 
Place your heli patrols below
*/
 
 
 
 
 
/* 
Custom Vehicle patrol spawns Eg. (Watch out they are stupid)
 
[[725.391,4526.06,0],   //Position to patrol
[725.391,4526.06,0], // Position to spawn at
200, //Radius of patrol
10,                     //Number of waypoints to give
"HMMWV_Armored", //Classname of vehicle (make sure it has driver and gunner)
1 //Skill level of units 
] spawn vehicle_patrol;
 
Place your vehicle patrols below this line
*/
 
[[18654.727, 17438.904, 0.26470864],   //Position to patrol
[18654.727, 17438.904, 0.26470864], // Position to spawn at
400, //Radius of patrol
10,                     //Number of waypoints to give
"HMMWV_Armored", //Classname of vehicle (make sure it has driver and gunner)
1 //Skill level of units 
] spawn vehicle_patrol;
 
 
 
 
 
/*
Paradropped unit custom spawn Eg.
 
[[911.21545,4532.7612,2.6292224],  //Position that units will be dropped by
[0,0,0],                           //Starting position of the heli
400,                               //Radius from drop position a player has to be to spawn chopper
"UH1H_DZ",                         //Classname of chopper (Make sure it has 2 gunner seats!)
5,                                 //Number of units to be para dropped
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.
True                               //True: Heli will stay at position and fight. False: Heli will leave if not under fire. 
] spawn heli_para;
 
Place your paradrop spawns under this line
*/
 
[[18788.277, 17259.93, 0.49666703],  //Position that units will be dropped by
[18788.277, 17259.93, 0.49666703],                           //Starting position of the heli
200,                               //Radius from drop position a player has to be to spawn chopper
"UH1H_DZ",                         //Classname of chopper (Make sure it has 2 gunner seats!)
10,                                 //Number of units to be para dropped
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.
True                               //True: Heli will stay at position and fight. False: Heli will leave if not under fire. 
] spawn heli_para;
/*
 
 
 
 
do the whole thing and ofcourse just change the co-ords dont change anything else the first time you test it and it should work, if it does you can then change it accordingly.
 
But if it doesnt work its not the custom_spawns.sqf that's going wrong. :) hope it helps?
Link to comment
Share on other sites

  • 0
/Custom Spawns file//
/*
Custom group spawns Eg.

[[500.21545,3002.7612,2.6292224],                 //position
5,                        //Number Of units
1,                        //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"ai_wep0,ai_wep1,ai_wep2,ai_wep3,ai_wep4,ai_wep5,ai_wep6,ai_wep7,ai_wep8,ai_wep9,ai_wep10",                 //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
*/
[[7100,2500,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[7000,2700,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6700,3000,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6500,2900,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6700,2800,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6400,2700,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6700,2500,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6600,2500,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6400,2600,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6500,2400,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6800,2300,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6400,2400,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6500,2300,0.001],5,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
[[6800,2500,0.001],10,1,"Random",8,"","Bandit2_DZ","Random"] call spawn_group;      //Gun Box
/*
Custom static weapon spawns Eg. (with one position)

[[[911.21545,4532.7612,2.6292224]], //position(s) (can be multiple).
"D30_Ins",             //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).
"SearchLight_CDF,Class = KORD_high",             //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
*/


/*
Custom Chopper Patrol spawn Eg.

[[725.391,4526.06,0],    //Position to patrol
[0,0,0],	             // Position to spawn chopper at
2000,					//Radius of patrol
10,                     //Number of waypoints to give
"UH1Y",		        //Classname of vehicle (make sure it has driver and two gunners)
1						//Skill level of units 
] spawn heli_patrol;

Place your heli patrols below
*/
[[7100,2500,0.001],8,1,"Random",8,"","Bandit2_DZ","Random"] spawn heli_patrol;      //Gun Box




/* 
Custom Vehicle patrol spawns Eg. (Watch out they are stupid)

[[725.391,4526.06,0],   //Position to patrol
[725.391,4526.06,0],	// Position to spawn at
200,					//Radius of patrol
20,                     //Number of waypoints to give
"M1A2_TUSK_MG",		//Classname of vehicle (make sure it has driver and gunner)
1						//Skill level of units 
] spawn vehicle_patrol;

Place your vehicle patrols below this line
*/
[[7100,2500,0.001],8,1,"Random",8,"","Bandit2_DZ","Random"] spawn vehicle_patrol;      //Gun Box




/*
Paradropped unit custom spawn Eg.

[[911.21545,4532.7612,2.6292224],  //Position that units will be dropped by
[0,0,0],                           //Starting position of the heli
400,                               //Radius from drop position a player has to be to spawn chopper
"UH1Y",                         //Classname of chopper (Make sure it has 2 gunner seats!)
20,                                 //Number of units to be para dropped
1,                                 //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"ai_wep0,ai_wep1,ai_wep2,ai_wep3,ai_wep4,ai_wep5,ai_wep6,ai_wep7,ai_wep8,ai_wep9,ai_wep10",                          //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.
True                               //True: Heli will stay at position and fight. False: Heli will leave if not under fire. 
] spawn heli_para;

Place your paradrop spawns under this line
*/
[[7100,2500,0.001],8,1,"Random",8,"","Bandit2_DZ","Random"] spawn heli_para;      //Gun Box

Hello, I'm having problems setting up my para drops, vehicle patrols and heli patrols with Wai. I'll post what I'm putting in it.

I have got the man patrols to work, I just need help with the line of scripting for para, vehicle, and heli patrols.

Thanks much!

Link to comment
Share on other sites

  • 0

You have not defined a starting position for your vehicle, heli patrols or your para drop ,

You missing the [0,0,0] after the actual coordinates to patrol although I found it only worked with actual coords in there rather then the 0,0,0.

Your man patrols work as they don't use starting positions

You need to redo the vehicle,heli and para patrols again using each example above each section , don't just copy and paste the men patrols //gunbox you have been using

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
  • Discord

×
×
  • Create New...