View Full Version : crates, and the new grenade launchers
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.
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
Thanks man http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif
No, that wasn't it. http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/sad.gif The message displayed when it CTD is:
no entry 'config.bin::CfgWeapons.MM-1'
The PhanTom
Oct 24 2001, 20:50
perhaps try: mm1
I think that was it
Thanks, PT. Got the MM-1 now, but no ammo.
Not crashing now though http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif
Thundercok
Oct 25 2001, 00:51
this addweaponcargo ["MM1",3]; this addmagazinecargo ["MM1magazine",10]
TC, I actually cut and pasted the line in your post. Still no ammo. Am I missing a patch?
The PhanTom
Oct 25 2001, 14:00
no, I think it's somekind of bug.
IntruderDZ
Oct 26 2001, 01:52
it works for me "MM1Magazine" do u know the russians addweapon and magazine is too?
Chris Death
Nov 15 2001, 22:07
don't forget to put the magazine in before the
weapon
Rick Nieuwenhuis
Nov 15 2001, 22:10
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)
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 http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/sad.gif
Problem got solved with 1.29 for me, though to be honest, haven't played that particular mission since the upgrade to 1.3...
InqWiper
Nov 16 2001, 10:49
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.
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?
Space Cadet
Nov 16 2001, 12:43
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.
Mr ThunderMakeR
Nov 16 2001, 16:42
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.
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)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.