Advertisement
Gamenator

Arma bomb detonation midair

Jan 19th, 2024
1,747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.56 KB | None | 0 0
  1. [thisTrigger] spawn {    
  2.   if (( getposatl vehicle player) select 2 > 500) then{    
  3.     private _position = vehicle player getRelPos [0,0];
  4.     private _newPos = _position vectorAdd [0,0,1000];
  5.     _missileDir = _newpos vectorFromTo getPosATL vehicle player;    
  6.     _missile = createVehicle ["vn_bomb_2000_mk84_he_ammo", _newpos, [], 0, "CAN_COLLIDE"];    
  7.   triggerammo _missile;
  8.    [_missile, vehicle player] spawn {    
  9.     params ["_missile", "_tgt"];    
  10.     sleep 0.1;    
  11.     _missile setMissileTarget _tgt;    
  12.           };
  13.     }else{};      
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement