WAI need some help

Waylon194

Member
Hey guys, I am editing my server but I ran into a problem.
I want to make my mission harder, I want to achive that by spawning more AI.

DEFAULT CODE:

_rndnum = 5 + round (random 3);
[[_position select 0,_position select 1,0],_rndnum,"Hard","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Hard","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Random","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Random","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

But the _rndnum confuses me, _rndnum = 5 AI but I do not get the +round part...

If I want to spawn 10 AI, Ishould make it like this:

[[_position select 0,_position select 1,0],10,"Hard","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select

Right ?
 
Change _rndnum = 5 to _rndnum = 10. That should spawn 10 minimum and a chance of up to 3 more.
 
Oh ok, so + random (3) has a chance to spawn 11, 12 or 13 AI.

So if I make it 7, the max AI it can spawn is 10.

It has 4 groups so the mission will then spawn a MAX of 40
 
Back
Top