Jump to content
Sign in to follow this  
warghost20

All Weapons

Recommended Posts

Yesterday i played a downloaded Coop Mission and there was an ammobox were all weapons were in, all USMC + all Russian weapons, could someone tell me how to do this?

Thanks!

Share this post


Link to post
Share on other sites
Yesterday i played a downloaded Coop Mission and there was an ammobox were all weapons were in, all USMC + all Russian weapons, could someone tell me how to do this?

Thanks!

What does this have to do with the Subforum You posted in?

ArmA 2 : CONFIGS AND SCRIPTING (addons)

_______

Answer:

USE in a script:

addWeapon

addWeaponCargo

addMagazine

addMagazineCargo

LIST OF A2 Weapons

Share this post


Link to post
Share on other sites
i still dont understand how to do it

What you need to do to create an ammo crate with all weapons is either put a lot of code in the crate's Initialization box to "load" whatever weapons you want in it, or you can write a separate script that loads it. If you're just getting started with mission editing, you can Search around the boards here or at Armaholic for some scripts to do this kind of thing.

You don't need to be a coder to do this; you can learn from scripts others have written and posted. Then you can start to see how they do it, and eventually, you can write your own.

But you need to search for this kind of thing, since the question has been asked many times and the answer is sitting on the forums waiting for you to find.

Share this post


Link to post
Share on other sites
What you need to do to create an ammo crate with all weapons is either put a lot of code in the crate's Initialization box to "load" whatever weapons you want in it, or you can write a separate script that loads it. If you're just getting started with mission editing, you can Search around the boards here or at Armaholic for some scripts to do this kind of thing.

You don't need to be a coder to do this; you can learn from scripts others have written and posted. Then you can start to see how they do it, and eventually, you can write your own.

But you need to search for this kind of thing, since the question has been asked many times and the answer is sitting on the forums waiting for you to find.

i found nothing on armaholic, and nothing with search, i need to know what codes i need to use, i already tried it with the OP codes but it doesent work on arma, did exactly how it was written

Share this post


Link to post
Share on other sites

Hmm, I think your search skills need work, or you didn't actually try to search, as I just did a search for "ammo crate" and found these threads, all of which contain the answer:

http://forums.bistudio.com/showthread.php?t=23566&highlight=ammo+crate

http://forums.bistudio.com/showthread.php?t=73825&highlight=ammo+crate

http://forums.bistudio.com/showthread.php?t=87280&highlight=ammo+crate

Besides which, pufu gave you the links you need, if you can't make it work, then maybe you need to stick with the stock Crate loadouts. I mean, adding something like "this addWeaponCargo ["G36a", 100];" or "this addMagazineCargo ["30Rnd_556x45_G36", 100];" to the init of an existing ammo crate isn't rocket science, nor is it that badly documented. It also hasn't changed since OFP, except for the ammo and weapon names.

Edited by madine75

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  

×