Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Most of this script is Jester's AhoyWorld helicopter ammodrop script found on armaholic.
- Modified for generic ammodrop request by SonixApache.
- */
- //vars 'n shit
- _chuteType = "I_Parachute_02_F"; //parachute for blufor, for opfor and greenfor replace the 'B' with 'O' or 'G' respectively
- _crateType = "I_supplyCrate_F"; //ammocrate class for blufor, feel free to change to whichever box you desire
- _smokeType = "SmokeShellGreen"; //smoke shell color you want to use
- _lightType = "Chemlight_green"; //chemlightcolor you want used
- _position = [21300,10350,500]; //position to drop shit, can be replaced with whatever
- if (!isServer && isNull player) then {isJIP=true;} else {isJIP=false;};
- // Wait until player is initialized
- if (!isDedicated) then
- {
- waitUntil {!isNull player && isPlayer player};
- };
- //Spawn chute, spawn crate, attach crate, slap a light on it
- _chute = createVehicle [_chuteType, _position, [], 0, 'FLY'];
- _crate = createVehicle [_crateType, position _chute, [], 0, 'NONE'];
- _crate attachTo [_chute, [0, 0, -1.3]];
- _crate allowdamage false;
- _light = createVehicle [_lightType, position _chute, [], 0, 'NONE'];
- _light attachTo [_chute, [0, 0, 0]];
- // clear crate
- clearWeaponCargoGlobal _crate;
- clearMagazineCargoGlobal _crate;
- clearItemCargoGlobal _crate;
- clearBackpackCargoGlobal _crate;
- // stuff in the crate
- _crate addWeaponCargoGlobal ["rifle_FAL", 16];
- _crate addMagazineCargoGlobal ["20Rnd_762x51_Mag", 40];
- _crate addWeaponCargoGlobal ["hgun_Pistol_heavy_02_F", 16];
- _crate addMagazineCargoGlobal ["6Rnd_45ACP_Cylinder", 48];
- _crate addItemCargoGlobal ["V_mas_afr_TacVest_i", 16];
- _crate addItemCargoGlobal ["H_HelmetB_black", 16];
- _crate addItemCargoGlobal ["U_IG_Guerilla1_1", 4];
- _crate addItemCargoGlobal ["U_O_Wetsuit", 4];
- // Ditch the crate once it hits the floor, drop a smoke.
- waitUntil {position _crate select 2 < 1 || isNull _chute};
- detach _crate;
- _crate setPos [position _crate select 0, position _crate select 1, 0];
- _smoke = _smokeType createVehicle [getPos _crate select 0, getPos _crate select 1,5];
- _crate allowdamage true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement