Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CH-53E GAU-21 Initialization Script
- // Capt Conway — 15th MEU(SOC) Realism Unit
- if (isServer) then {
- _CH53E = _this select 0;
- sleep 0.5;
- _CH53E_RG = "MEU_GAU21_T" createVehicle (position _CH53E); // Creates the ramp gun at helicopter's position.
- _CH53E_RG attachTo [_CH53E, [0, -8.5, 0.7]]; // Attaches the ramp gun to the helicopter.
- _CH53E_RG setDir 180; // Rotates the ramp gun to face backwards.
- _CH53E_RG setPos getPos _CH53E_RG; // Syncs the ramp gun to multiplayer servers.
- sleep 0.5;
- _CH53E animate ['ramp_bottom', 0.56]; // Lowers the bottom ramp to be level.
- _CH53E animate ['ramp_top', 1.0]; // Fully raises the top ramp.
- waitUntil {sleep 5; not alive _CH53E}; // Checks every 5 seconds if the helicopter is destructed or not.
- deleteVehicle _CH53E_RG;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement