Jump to content
Sign in to follow this  
lonck

Can we make mags overlap in inventory?

Recommended Posts

Is it possible to make weap magazines take the same slot, overlap? Like ak mags take up the same slot and m-4 mags take up another slot? Or all mags take the same slot? Either way is fine.

Share this post


Link to post
Share on other sites
How come nobody answers? sad_o.gif  huh.gif

Maybe because no one knows an answer that would make you happy?

Ok, honestly. AFAIK one magazine takes at least one slot. So overlapping or stacking more than one mag per slot isn't possible. At least not on the usual way.

With scripting it might be possible to check if unit has more than one magazine of same type (say G36) and store them into a variable or an array. This way it would be possible, yes. But it's some kind of creating your own inventory.

Or you use some kind of Backpack which is basically the same as above, a separate Inventory.

So in terms of stacking or overlapping magazines in one slot, no, not possible. In terms of scripting and fake stacking and/or overlapping, yes, doable.

Share this post


Link to post
Share on other sites

What you are trying to achieve by having two magazines in one slot is key to answering this. For example, do you want to increase the amount of ammunition slots that a soldier has, or increase the amount of ammunition? There are probably better ways of dealing with those situations than by what you are suggesting. From my understanding of how ArmA is coded, the idea that two inventory objects could share the same space is manifestly impossible.

Share this post


Link to post
Share on other sites

ok well, can't you guys suggest something similar? What I'm trying to do is increase number of mags a soldier can carry. I want to be able to use the pistol slot to be able to carry main weap ammo too. I also want to reduce the number of slots satchel charges and AT ammo take ( reduce it from two to one slot).

Share this post


Link to post
Share on other sites
ok well, can't you guys suggest something similar?  What I'm trying to do is increase number of mags a soldier can carry.  I want to be able to use the pistol slot to be able to carry main weap ammo too.  I also want to reduce the number of slots satchel charges and AT ammo take ( reduce it from two to one slot).

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgMagazines

{

class Default;

class PipeBomb;

class PipeBombSmall : PipeBomb

{

       displayName="Satchel Charge (Small)";

type = WeaponSlotItem;

};

class M136;

class M136Small: M136

{

       displayName="M136 (Small)";

type = WeaponSlotItem;

};

class Javelin;

class JavelinSmall: Javelin

{

       displayName="Javelin (Small)";

type = WeaponSlotItem;

};

};

class cfgWeapons

{

class Default;

   class M136;

class M136Small: M136

{

displayName="M136 (Small)";

magazines[]={M136Small};

};

   class Javelin;

class JavelinSmall: Javelin

{

       displayName="Javelin (Small)";

magazines[]={JavelinSmall};

};

};

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  

×