Jump to content
Sign in to follow this  
Vogel69

can't add weapon to a unit...

Recommended Posts

may be it's a stupid question but I can't add a weapon on unit at start...

I try to add this line in the unit's initialization section:

this addMagazine "M4A1"; this addWeapon "M4A1";

but I got an error and no weapon at mission start:

"No Entry 'bin\Config.bin/cfgMagazines.M4A1'

or

"No Entry 'bin\Config.bin/cfgWeapon.M4A1'

I try to find a file nommed config.bin in take on helicopter path (I'm on steam) in order to find the right "ClassName" of the weapon but no config.bin file...

some help please ? thanx

Share this post


Link to post
Share on other sites

The magazine classname is probably 30Rnd_556x45_Stanag but the weapon classname looks right.

Share this post


Link to post
Share on other sites

thank you kylania I will try that in few hours...

---------- Post added at 05:04 PM ---------- Previous post was at 04:10 PM ----------

I just know that script line in unit init. section don't work too:

this addweapon "M16";

I've tried some other Arma2 classname like "AK47", "AK47_BASE" without "addmagazine" command but it failed too... may be I forgot to add some script in MPmission directory ? soory but i'm real newby in editing & scripting bis game... :confused:

Share this post


Link to post
Share on other sites

just perfect... just what I need :) thank you very much Celery

---------- Post added at 07:38 PM ---------- Previous post was at 07:06 PM ----------

know it's ok with this code:

this addMagazine "30Rnd_556x45_Stanag_H"; this addWeapon "M4A1_H";

:thanx:

Edited by Vogel69

Share this post


Link to post
Share on other sites

this addMagazine "30Rnd_556x45_Stanag_H"; this addWeapon "M4A1_H";

What's the code to add multiple magazines? When I use your code, it only adds one, and the gun itself is empty.

Share this post


Link to post
Share on other sites

Try this "this addMagazine "30Rnd_556x45_Stanag_H, 5" or just copy the ammo code again and again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×