Jump to content
Sign in to follow this  
wiggum2

Add weapons and ammo to crate, cant take out a loaded gun ?

Recommended Posts

Hi !

i use this script to add stuff to a crate:

//Add stuff to crate
clearMagazineCargoGlobal _crate;
clearWeaponCargoGlobal _crate;
clearItemCargoGlobal _crate;
clearBackpackCargoGlobal _crate;

_crate addweaponcargoglobal ["LMG_Mk200_F",4];
_crate addmagazinecargoglobal ["200Rnd_65x39_cased_Box_Tracer",40];
_crate addItemCargoGlobal ["optic_Holosight",4];

my problem is that i cant take out a "loaded" gun like you can with pre defined crates (right click the weapon and you take it + one magazine already loaded into the weapon)

i can take out a weapon but then have to take the ammo separate, which is bad for a deathmatch mission...

I also tried to add the ammo before the weapon, no difference...what do i do wrong ?

Share this post


Link to post
Share on other sites

Adding the magazines first is pretty much all you can do. Predefined boxes shouldn't be any different. What really matters is if you TAKE the magazines first.

Oh and, are you trying this with vanilla weapons ?

For a deathmatch mission you could also use loadoutscripts of some sort if you want things to go fast and smooth.

Share this post


Link to post
Share on other sites

So there is really nothing you can do ?

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  

×