Jump to content
  • 0

Adding more AI to a wai script


KillKillKill

Question

Hi all. Sorry, I am a noob admin with some experience. But I am confused.... I want to add more ai to this script. Do I also need to add coords or is it as simple as adding more numbers? This is my script. Any help is really appreciated.

 

............................

// Construction  wai 2
[[1472, 12537,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[1331, 12485,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[1424, 12472,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[[1356.66,12494.9,3.65],[1359.9459, 12532.396, 4.35043],[1366.6877, 12517.218, -0.055966262],[1380.8385, 12553.244, 7.7632465],[1386.1068, 12497.722, 11.530006],[1421.0057, 12525.689, 13.765746]],
"KORD_high_TK_EP1","hard","GUE_Soldier_Sab","Bandit","Random",2,"","Random"] call spawn_static;
 
............................................................
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

NP, if you want the AI have different skins, then you can start a new line 

EXAMPLE:

[[1472, 12537,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[1331, 12485,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[1424, 12472,0.001],4,"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
[[1424, 12472,0.001],4,"hard","Random",3,"none","new skin name","Random","Bandit"] call spawn_group;
Link to comment
Share on other sites

  • 0
_difficulty = round(random 4)+1;

switch (_difficulty) do {
	case 1 : { 
		for "_i" from 0 to _difficulty do {
			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
		};
	};
	case 2 : {
		for "_i" from 0 to _difficulty do {
			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
		};
	};
	case 3 : {
		for "_i" from 0 to _difficulty do {
			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
		};
	};
	case 4 : {
		for "_i" from 0 to _difficulty do {
			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
		};
	};
	default { 
			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
	};
};

My settings for group spawning.

Random Position, random number of groups and group size.

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