Jump to content
Sign in to follow this  
Stag

crates, and the new grenade launchers

Recommended Posts

I tried putting the new Grenade launchers in crates with the following line:

AddWeaponCargo ["mm-1",2]; AddMagazineCargo ["mm-1",24]

But when I try and start the scenario, the mission crashes.

Any ideas?

Thanks in advance.

Share this post


Link to post
Share on other sites

you have to put the name of the crate in front of the commando, so it will be:

crate1 AddWeaponCargo ["mm-1",2];

crate1 AddMagazineCargo ["mm-1",24]

name your crate: crate1

hope this helps

Share this post


Link to post
Share on other sites

No, that wasn't it. sad.gif The message displayed when it CTD is:

no entry 'config.bin::CfgWeapons.MM-1'

Share this post


Link to post
Share on other sites

Thanks, PT. Got the MM-1 now, but no ammo.

Not crashing now though smile.gif

Share this post


Link to post
Share on other sites

TC, I actually cut and pasted the line in your post. Still no ammo. Am I missing a patch?

Share this post


Link to post
Share on other sites

just put the new crates in the map. (west addoncrate) you can find it under empty->civilian->ammo->addonweaponcrate(west) it already contains ammo and grenades for the new weapons (inc kozlice)

edit: in the action menu it says: Pick-up MM-1 THATS ammo for mm-1

normally it would say : pick-up MM-1 ammo

(Edited by Rick Nieuwenhuis at 1:12 am on Nov. 16, 2001)

Share this post


Link to post
Share on other sites

the "this addweaponcargo ["MM1",3]; this addmagazinecargo ["MM1magazine",10]" wont work for me either.

BIS you hear this? theres another bug (i think). wardog me and you are in the same boat.

how do i make more ammo in the crates? i only got weapon to and no ammo for them sad.gif

Share this post


Link to post
Share on other sites

Problem got solved with 1.29 for me, though to be honest, haven't played that particular mission since the upgrade to 1.3...

Share this post


Link to post
Share on other sites

Try creating multiple west addon ammo crates and put them inside eachother, that way U get alot of ammo and dont have to worry about the command lines.

Share this post


Link to post
Share on other sites

DV Chris Death: Is that so? You have to put magazines BEFORE the weapons? That would explain alot to me, cause i always put weapons first and never got anything to work in ammo boxes although getting no errors. And i added weapons in the description.ext to equip soldiers individually before the mission starts and it worked for all weapons EXCEPT the MM1 which had no ammo regardless of what i used (mm1, mm1magazine, mm1base). All other weapons worked in the description.ext but not in the ammoboxes. BTW: Do i have to name the ammoboxes or can i simply use 'this addweaponcargo ["g36a",3]'? Are there any differences between the ammo boxes except optics and standard loadout, ie can one put any weapon in any box or do some combinations not work?

Share this post


Link to post
Share on other sites

you only need to put in the magazines before the gun if you are adding equipment to a bloke and you want the gun to start loaded, if you add the gun first, he has the gun and ammo but you need to reload straight away.

When adding items to crates it dosn't matter which way you do it.

Share this post


Link to post
Share on other sites

Im not positive, but I have a good guess to ur problem...

The correct line is:

this addweaponcargo ["mm1",10]; this addmagazinecargo ["mm1magazine",10]

Now the key thing here is that u have to name your crate and then put that in the init line instead of the word "this". "This" is just a generic name and isnt actually supposed to be used in the line. Also, 10 is the amount of the weapon or magazines that will be in the crate. U can change it to anywhere from 1 to 10000+, there is no limit.

Also, Space Cadet is right, the order only matters when ur adding weapons and magazines to a soldier, not ammo crates or trucks.

Share this post


Link to post
Share on other sites

Lol, i tried it again and noticed that i didn't have the *cough* unofficial *cough* winter island addon installed where i had all those problems and just made a new mission. Everything worked fine. I installed the winter island addon and... no go, no weapons in the crates.  So i've been doing it right all the way but there were problems with that addon.

BTW: 'mm1' and 'mm1magazine' worked for me and 'this' worked too. You don't have to name the crate. I used:

clearweaponcargo this; clearmagazinecargo this; this addweaponcargo ["mm1",3]; this addmagazinecargo ["mm1magazine",12]

Worked in civilian and empty ammo crates, with weapons or magazines first.

(Edited by benu at 9:53 pm on Nov. 16, 2001)

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  

×