Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AIRCRAFT spawns
- _randomarray1 = [1,2,3,4,5];
- _randomtype = _randomarray1 select (floor (random (count _randomarray1)));
- objective1 = "spawn";
- _randx = (random 2000) - 1000;
- _randy = (random 2000) - 1000;
- _newpos = [(getmarkerpos objective1 select 0) + _randx, (getmarkerpos objective1 select 1) + _randy,0];
- _enemyairarray = [0,1];
- _enemyairtype = _enemyairarray select (floor (random (count _enemyairarray)));
- if(_enemyairtype==0) then{
- if(_randomtype==1) then{
- _vehicle1 = [(getpos airspawn1), floor(random 360), "O_Heli_Attack_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn2), floor(random 360), "O_Heli_Attack_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "missiles_scalpel";
- _aircraft2 removeweapon "missiles_scalpel";
- };
- if(_randomtype==2) then{
- _vehicle1 = [(getpos airspawn3), floor(random 360), "O_Mi24_V", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn4), floor(random 360), "O_Mi24_V", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "AT6Launcher";
- _aircraft2 removeweapon "AT6Launcher";
- };
- if(_randomtype==3) then{
- _vehicle1 = [(getpos airspawn5), floor(random 360), "PLA_WZ35", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn6), floor(random 360), "PLA_WZ35", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "missiles_scalpel";
- _aircraft2 removeweapon "missiles_scalpel";
- };
- if(_randomtype==4) then{
- _vehicle1 = [(getpos airspawn7), floor(random 360), "SUD_MI48_RU", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn8), floor(random 360), "SUD_MI48_RU", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "missiles_scalpel";
- _aircraft2 removeweapon "missiles_scalpel";
- };
- if(_randomtype==5) then{
- _vehicle1 = [(getpos airspawn9), floor(random 360), "O_Heli_Light_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn10), floor(random 360), "O_Heli_Light_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "missiles_dagr";
- _aircraft2 removeweapon "missiles_dagr";
- };
- };
- if(_enemyairtype==1) then{
- if(_randomtype==1) then{
- _vehicle1 = [(getpos airspawn1), floor(random 360), "O_Plane_CAS_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn2), floor(random 360), "O_Plane_CAS_02_F", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "Missile_AGM_01_Plane_CAS_02_F";
- _aircraft2 removeweapon "Missile_AGM_01_Plane_CAS_02_F";
- };
- if(_randomtype==2) then{
- _vehicle1 = [(getpos airspawn3), floor(random 360), "PLA_J30_CAS", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn4), floor(random 360), "PLA_J30_CAS", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "missiles_scalpel";
- _aircraft2 removeweapon "missiles_scalpel";
- };
- if(_randomtype==3) then{
- _vehicle1 = [(getpos airspawn5), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn6), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- };
- if(_randomtype==4) then{
- _vehicle1 = [(getpos airspawn7), floor(random 360), "JS_JC_SU35", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn8), floor(random 360), "JS_JC_SU35", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- _aircraft1 removeweapon "js_w_su35_kh29Launcher";
- _aircraft2 removeweapon "js_w_su35_kh29Launcher";
- };
- if(_randomtype==5) then{
- _vehicle1 = [(getpos airspawn9), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle1 select 0];
- _aircraft1 = _vehicle1 select 0;
- _vehicle2 = [(getpos airspawn10), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
- {
- _wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp setWaypointType "MOVE";
- _wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp2 setWaypointType "MOVE";
- _wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
- _wp3 setWaypointType "MOVE";
- _wp4 = group _x addWaypoint [position _x, 0];
- _wp4 setWaypointType "CYCLE";
- } foreach [_vehicle2 select 0];
- _aircraft2 = _vehicle2 select 0;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement