Advertisement
Gamenator

shinfaxi

Jan 18th, 2024 (edited)
1,643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.31 KB | None | 0 0
  1. span class="re5"> Activation:
  2. Blufor
  3. Activation
  4. Type:Present
  5. Condition:
  6. this && ((vehicle player in thisList) && {vehicle player iskindof "Plane"})
  7.  
  8. On Activation:
  9. [thisTrigger] spawn {  
  10. _i=10000;  
  11. params ["_trigger"];  
  12. private _pos = p1 modelToWorld [0,2,1.6];    
  13. private _missile = createVehicle ["vn_sa2_ammo", [0,0,0], [], 0, "none"];    
  14. _missile enableSimulation true;    
  15. _missile setPosASLW _pos;    
  16. _missile setVectorDirAndUp [[0,0,1], [1,0,0]];  
  17. sleep 20;  
  18.    
  19.        
  20.   if (( getposatl vehicle player) select 2 > 500) then{  
  21.    
  22.    
  23.   for "_i" from 0 to 4 do{  
  24.    if (( getposatl vehicle player) select 2 > 500) then{  
  25.     private _oldPos = getPosATL vehicle player;
  26.     private _newPos = _oldPos vectorAdd [0,0,600];  
  27.     private _position = vehicle player getRelPos [900,200];
  28.     _position set [2, _newpos];
  29.     _missileDir = _position vectorFromTo getPosATL vehicle player;    
  30.     _missile = createVehicle ["ammo_Missile_rim162", _position , [], 0, "CAN_COLLIDE"];    
  31.     _missile setVectorDirAndUp [_missileDir, [0,0,-1]];    
  32.    
  33.     [_missile, vehicle player] spawn {    
  34.     params ["_missile", "_tgt"];    
  35.     sleep 0.1;    
  36.     _missile setMissileTarget _tgt;    
  37.           };    
  38.     sleep 4;  
  39.     }else{break;};  
  40.   };  
  41.   sleep 7;  
  42.    
  43.     }else{};    
  44.    
  45.    
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement