Advertisement
Gamenator

Shinfaxi script

Sep 27th, 2023 (edited)
1,633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.79 KB | None | 0 0
  1.  
  2. //On activation
  3. [thisTrigger] spawn {
  4. _i=100;
  5. params ["_trigger"];
  6. private _altitude=300;
  7.  
  8. while {triggerActivated _trigger} do {
  9.   if (( getposatl vehicle player) select 2 > _altitude) then{
  10.   for "_i" from 0 to 4 do{
  11.    if (( getposatl vehicle player) select 2 > _altitude) then{
  12.     private _position = vehicle player getRelPos [900,200];
  13.     _position set [2,10000];
  14.     _missileDir = _position vectorFromTo getPosATL vehicle player;
  15.     _missile = createVehicle ["ammo_Missile_rim162", _position, [], 0, "CAN_COLLIDE"];
  16.     _missile setVectorDirAndUp [_missileDir, [0,0,-1]];
  17.     [_missile, vehicle player] spawn {
  18.     params ["_missile", "_tgt"];
  19.     sleep 0.1;
  20.     _missile setMissileTarget _tgt;
  21.           };
  22.     sleep 4;
  23.     }else{break;};
  24.   };
  25.   sleep 7;
  26.     }else{};
  27.   };
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement