Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // CH-53E GAU-21 Initialization Script
  2. // Capt Conway — 15th MEU(SOC) Realism Unit
  3.  
  4. if (isServer) then {
  5. _CH53E = _this select 0;
  6. sleep 0.5;
  7.  
  8. _CH53E_RG = "MEU_GAU21_T" createVehicle (position _CH53E); // Creates the ramp gun at helicopter's position.
  9. _CH53E_RG attachTo [_CH53E, [0, -8.5, 0.7]]; // Attaches the ramp gun to the helicopter.
  10. _CH53E_RG setDir 180; // Rotates the ramp gun to face backwards.
  11. _CH53E_RG setPos getPos _CH53E_RG; // Syncs the ramp gun to multiplayer servers.
  12. sleep 0.5;
  13.  
  14. _CH53E animate ['ramp_bottom', 0.56]; // Lowers the bottom ramp to be level.
  15. _CH53E animate ['ramp_top', 1.0]; // Fully raises the top ramp.
  16.  
  17. waitUntil {sleep 5; not alive _CH53E}; // Checks every 5 seconds if the helicopter is destructed or not.
  18. deleteVehicle _CH53E_RG;
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement