Adaaam95 Posted February 11, 2016 Report Share Posted February 11, 2016 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 More sharing options...
ElDubya Posted February 12, 2016 Report Share Posted February 12, 2016 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 More sharing options...
ElDubya Posted February 12, 2016 Report Share Posted February 12, 2016 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 More sharing options...
Adaaam95 Posted February 12, 2016 Author Report Share Posted February 12, 2016 I managed to get it working with a seperate block of code for each AI group but I was getting some sort of array error when I was using your second example, by the way I changed static_missions to true but do I have to change the custom_per_world to true also? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now