[Help] WAI static ai spawn

Bram Nagtegaal

New Member
Hello, I'm trying to create an AI mine, but I've run into a problem placing the ai.

The first AI I place works "fine" but the ones after that won't spawn. They have the same setup, only different coordinates.

if(isServer) then {


//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", or ["Random","at"], // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air 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
*/

[
[6714.82,9426.73,5.88986], // Position cubicle watchtower
1, // Number Of units
"Random", // Skill level of unit (easy, medium, hard, extreme, Random)
"Random", // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
4, // Number of magazines
"", // Backpack classname, use "Random" or classname here
"Bandit2_DZ", // Skin classname, use "Random" or classname here
"Random", // Gearset number. "Random" for random gear set
"Bandit" // AI Type, "Hero" or "Bandit".
] call spawn_group;

[
[6739.95,9371.78,0.0012207], // Position LMG nest
1, // Number Of units
"Random", // Skill level of unit (easy, medium, hard, extreme, Random)
"Random", // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
4, // Number of magazines
"", // Backpack classname, use "Random" or classname here
"Bandit2_DZ", // Skin classname, use "Random" or classname here
"Random", // Gearset number. "Random" for random gear set
"Bandit" // AI Type, "Hero" or "Bandit".
] call spawn_group;

[
[6736.69,9360.71,7.70706], // Position cubicle watchtower
1, // Number Of units
"Random", // Skill level of unit (easy, medium, hard, extreme, Random)
"Random", // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
4, // Number of magazines
"", // Backpack classname, use "Random" or classname here
"Bandit2_DZ", // Skin classname, use "Random" or classname here
"", // Gearset number. "Random" for random gear set
"Bandit" // AI Type, "Hero" or "Bandit".
] call spawn_group;

diag_log "WAI: Static mission loaded";

};

Aside from not spawning, I would like to change the Primary gun the AI use, I tried using numbers (1,2,3), names (sniper, Sniper, machine and Machine) aswell as the class names (ai_wep_sniper,ai_wep_machine) and it either gave the AI a random assault rifle or it didnt spawn him at all.

Also, I'm trying to put my AI unit in a tower, but it keeps bugging in the walls of the tower, is this a matter of placement/coordinates or are they just not mend to be spawned on towers?

Any help is greatly appreciated :|
 
Back
Top