Jump to content

Dayz Epoch add ai spawns to server


Adaaam95

Recommended Posts

Hello,

I have WAI installed on my server but I don't know how to add ai spawns in set places on the map, there's some example code in the chernarus.sqf file in the dayz server pbo but I couldn't get it to work.

Does anyone have an example I can use? Also how do I add multiple spawns for the ai?

Thanks, 

Adam

Link to comment
Share on other sites

In your server.pbo, in the WAI folder, find config.sqf and right down the bottom, change this to true :         static_missions                = false;        // use static mission file

Then go to the WAI\Static folder, open default.sqf and look for this block of code : 

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

	[
		[953.237,4486.48,0.001],			// Position
		4,									// Number Of units
		"Random",							// Skill level of unit (easy, medium, hard, extreme, Random)
		"Random",							// Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
		4,									// Number of magazines
		"Random",							// Backpack classname, use "Random" or classname here
		"Random",							// Skin classname, use "Random" or classname here
		"Random",							// Gearset number. "Random" for random gear set
		"Bandit"							// AI Type, "Hero" or "Bandit".
	] call spawn_group;

	Place your custom group spawns below
	*/

Remove the /* from under where it says //Custom Spawns file// at the top.

Remove the */ from just underneath where it says Place your custom group spawns below.

This makes this section now readable by the server. 

Now add your AI. 

Link to comment
Share on other sites

If you want multiple AI groups, you should just be able to change this : 

	Custom group spawns Eg.

	[
		[953.237,4486.48,0.001],			// Position
		4,									// Number Of units
		"Random",							// Skill level of unit (easy, medium, hard, extreme, Random)
		"Random",							// Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
		4,									// Number of magazines
		"Random",							// Backpack classname, use "Random" or classname here
		"Random",							// Skin classname, use "Random" or classname here
		"Random",							// Gearset number. "Random" for random gear set
		"Bandit"							// AI Type, "Hero" or "Bandit".
	] call spawn_group;

	Place your custom group spawns below

to this : 

	[
		[
			[953.237,4486.48,0.001],		// Positions
			[911.21,4532.76,2.62],
			[921.21,4542.76,2.62]
		],
		4,									// Number Of units
		"Random",							// Skill level of unit (easy, medium, hard, extreme, Random)
		"Random",							// Primary gun set number or gun and rocket launcher. Syntax is "Random", for gun only or ["Random","AT"], for gun and launcher
		4,									// Number of magazines
		"Random",							// Backpack classname, use "Random" or classname here
		"Random",							// Skin classname, use "Random" or classname here
		"Random",							// Gearset number. "Random" for random gear set
		"Bandit"							// AI Type, "Hero" or "Bandit".
	] call spawn_group;

Should work.

 

Just make sure that your last position entry doesn't have a , after it.

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...