Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _unitTypes = ["rhs_vdv_flora_sergeant","rhs_vdv_flora_rifleman","rhs_vdv_flora_rifleman","rhs_vdv_flora_marksman","rhs_vdv_flora_efreitor","rhs_vdv_flora_at","rhs_vdv_flora_junior_sergeant","rhs_vdv_flora_LAT","rhs_vdv_flora_rifleman"];
- _posAI = [AISpawn_0,AISpawn_1,AISpawn_2,AISpawn_3,AISpawn_4];
- _aliveGroups = [];
- while{alive player} do
- {
- if(count _aliveGroups < 8) then
- {
- _position = position (selectRandom _posAI);
- _group = createGroup east;
- for "_i" from 0 to (count _unitTypes - 1) step 1 do
- {
- _unitType = (_unitTypes select _i);
- _unit = _group createUnit [_unitType, _position, [], 0, "FORM"];
- sleep (1/10);
- };
- _newPos = MoveTarget getRelPos [random 50, random 360];
- _group move _newPos;
- _group setSpeedMode "FULL";
- _aliveGroups pushBack _group;
- sleep 1;
- }
- else
- {
- {
- if({Alive _X} count units _x < 5) then
- {
- _aliveGroups deleteAt (_aliveGroups find _x);
- hint "new group";
- }
- }forEach _aliveGroups;
- };
- sleep (1/10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement