OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Havoc25 on 17 Sep 2010, 05:23:18

Title: MH-6J Weapons
Post by: Havoc25 on 17 Sep 2010, 05:23:18
Anyone know the weapons(class) and magazine for the MH-6J. Also do I need to make one <EMPTY> \
then...this addWeapon ["whatever, 1"];    same thing for magazine, (to have ammo)?
 Why cant i add ammo to any heli cargo, i.e;   this addMagazineCargo ["M9", 5]; it will automatically put 20 30Rnd Stanag?

  THANKS.

That's a HUGE HELP. Thx. But what about adding weapons to Little Bird it self, like Hydra's and gattlins?
Title: Re: MH-6J Weapons
Post by: Pirin on 17 Sep 2010, 06:22:07
You can use the commands clearWeaponCargo (http://community.bistudio.com/wiki/clearWeaponCargo) and clearMagazineCargo (http://community.bistudio.com/wiki/clearMagazineCargo) to empty the magazines that start in the limited cargo space of the unarmed MH-6J Littlebird (there's no weapons by default).

Then you can start adding weapons and ammo as you described, using addWeaponCargo (http://community.bistudio.com/wiki/addWeaponCargo) and addMagazineCargo (http://community.bistudio.com/wiki/addMagazineCargo) commands.

This code in your MH-6J's init field will clear the magazines and load up two M9 Pistols with 10 magazines and one M1014 shotgun with 10 reloads of shells:

Code: [Select]
clearMagazineCargo this;
this addWeaponCargo ["M9", 2];
this addMagazineCargo ["15Rnd_9x19_M9", 10];
this addWeaponCargo ["M1014", 1];
this addMagazineCargo ["8Rnd_B_Beneli_74Slug", 10];

The MH-6J seems to have a cargo limit of 3 weapons and 20 clips though.
Title: Re: MH-6J Weapons
Post by: Havoc25 on 17 Sep 2010, 07:30:00
Dude you are the BOMB!
Title: Re: MH-6J Weapons
Post by: Pirin on 17 Sep 2010, 19:42:22
That's a HUGE HELP. Thx. But what about adding weapons to Little Bird it self, like Hydra's and gattlins?

Well, you can add weapons to the MH-6J, but it has no weapon proxies so they won't physically show up on the helicopter.  They'll just seemingly fire from inside the canopy.

Here's how you'd add a GAU8 (the big A-10 anti-tank cannon) to an MH-6J:

Code: [Select]
this addMagazine "1350Rnd_30mmAP_A10"; this addWeapon "GAU8";