Advertisement
Guest User

Untitled

a guest
Oct 12th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. /*
  2. ::: ::: ::: ::: ::: :::
  3. :+: :+: :+: :+: :+: :+:
  4. +:+ +:+ +:+ +:+ +:+ +:+
  5. +#+ +#+ +#+ +#+ +#+ +#+
  6. +#+ +#+ +#+ +#+ +#+ +#+
  7. #+# #+# #+# #+# #+# #+#
  8. ### ### ### ### ### ###
  9.  
  10. Helicopter ammo box drop script (aw_drop.sqf) was written by Jester [AW] of AhoyWorld.co.uk
  11. You may add or alter this code to your liking as long as you leave the authors name in place.
  12. set _reloadtime = 30 to however many seconds you want before it is available to use again.
  13. place "this addAction ["<t color='#0000f6'>Ammo Drop</t>", "aw_drop.sqf",[1],0,false,true,""," driver _target == _this"];" in the helicopter/plane init field.
  14. change the loadouts to the crate to your likings.
  15. */
  16. _chute = createVehicle ["G_Parachute_02_F", [100, 100, 100], [], 0, 'FLY'];
  17. _chute setPos [getMarkerPos "marker_3" select 0, getMarkerPos "marker_3" select 1, 100];
  18. _crate = createVehicle ["B_supplyCrate_F", position _chute, [], 0, 'NONE'];
  19. _crate attachTo [_chute, [0, 0, -1.3]];
  20. _crate allowdamage false;
  21.  
  22. // clear crate - leaves medkits in place. add clearItemCargoGlobal _crate; to remove medkits
  23. clearWeaponCargoGlobal _crate;
  24. clearMagazineCargoGlobal _crate;
  25. clearItemCargoGlobal _crate;
  26. // fill crate with our junk
  27. _crate addWeaponCargoGlobal ["rhs_weap_m4_carryhandle_pmag", 2];
  28. _crate addMagazineCargoGlobal ["DemoCharge_Remote_Mag", 4];
  29. _crate addMagazineCargoGlobal ["SatchelCharge_Remote_Mag", 4];
  30. _crate addItemCargoGlobal ["ACE_Clacker", 2];
  31. _crate addItemCargoGlobal ["ACE_DefusalKit", 2];
  32. _crate addItemCargoGlobal ["ACE_Bodybag", 5];
  33. _crate addItemCargoGlobal ["ACE_EarBuds", 10];
  34. _crate addItemCargoGlobal ["ACE_fieldDressing", 20];
  35. _crate addItemCargoGlobal ["ACE_Morphine", 10];
  36. _crate addItemCargoGlobal ["ACE_epinephrine", 10];
  37. _crate addItemCargoGlobal ["SmokeShell", 10];
  38. _crate addItemCargoGlobal ["SmokeShellRed", 10];
  39. _crate addItemCargoGlobal ["SmokeShellGreen", 10];
  40. _crate addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 10];
  41. _crate addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 10];
  42. _crate addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 10];
  43. _crate addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_Mk318_Stanag", 50];
  44. _crate addMagazineCargoGlobal ["rhsusf_100Rnd_556x45_soft_pouch", 20];
  45. _crate addMagazineCargoGlobal ["rhs_mag_M433_HEDP", 30];
  46. _crate addMagazineCargoGlobal ["rhsusf_5Rnd_300winmag_xm2010", 4];
  47. _crate addMagazineCargoGlobal ["rhsusf_20Rnd_762x51_m118_special_Mag", 10];
  48. _crate addWeaponCargoGlobal ["rhs_weap_M136", 2];
  49. waitUntil {position _crate select 2 < 1 || isNull _chute};
  50. detach _crate;
  51. _crate setPos [position _crate select 0, position _crate select 1, 0];
  52. _smoke = "SmokeShellYellow" createVehicle [getPos _crate select 0, getPos _crate select 1,5];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement