Advertisement
Gamenator

burstmissile for addaction

Jan 24th, 2024
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.41 KB | None | 0 0
  1. span class="re5"> null=[]spawn{
  2. _i=100;
  3.  
  4. if(((vehicle player iskindof "Plane") || (vehicle player iskindof "Helicopter")) && (side player == west))then{  
  5.   _bomb = "FIR_GBU24A_BLU118";  
  6.      
  7. if ((( getposatl vehicle player) select 2 > 750) || (( getposatl vehicle player) select 2 < 10)) then{
  8.     private _degree=0;      
  9.     private _position1 = vehicle player getRelPos [0,0];    
  10.     private _newPos1 = _position1 vectorAdd [0,0,720];
  11.     _missile = createVehicle [_bomb, _newpos1, [], 0, "CAN_COLLIDE"];        
  12.     triggerammo _missile;  
  13.     for "_i" from 0 to 3 do{
  14.      private _rand_num = [10, 250] call BIS_fnc_randomInt;
  15.      private _position1 = vehicle player getRelPos [_rand_num,_degree];    
  16.      private _newPos1 = _position1 vectorAdd [0,0,720];
  17.      _missile1 = createVehicle [_bomb, _newpos1, [], 0, "CAN_COLLIDE"];
  18.     triggerammo _missile1;
  19.     _degree = _degree +90;
  20.     };
  21.            
  22.        
  23.     }else{  
  24.  _missile = createVehicle [_bomb, vehicle player, [], 0, "CAN_COLLIDE"];  
  25.   triggerammo _missile;
  26.   for "_i" from 0 to 3 do{
  27.      private _rand_num = [10, 250] call BIS_fnc_randomInt;
  28.      private _rand_num1 = [10, 250] call BIS_fnc_randomInt;
  29.      private _position0 = getposatl vehicle player;  
  30.      private _newPos0 = _position0 vectorAdd [_rand_num,_rand_num1];
  31.      _missile1 = createVehicle [_bomb, _newpos0, [], 0, "CAN_COLLIDE"];
  32.     triggerammo _missile1;
  33.     };
  34.          
  35.   };  
  36.    
  37.      
  38.      
  39. deletevehicle p2;}  
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement