Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
chronicsilence

Adding magazine with specific ammo count to specific container

Recommended Posts

Ok, I'm trying to figure this out and not getting very far. I can add a magazine with a certain amount of ammo to the player using something like

player addMagazine ["30Rnd_556x45_STANAG", 15];

and I can add a full magazine to a specific container on the player with something like

(uniformContainer player) addItemCargoGlobal ["30Rnd_556x45_STANAG",1];

But is there any way to do both, and add a magazine with a specific ammo count to a specific container on the person (e.g. to their vest)?

Edited by ChronicSilence

Share this post


Link to post
Share on other sites

Try this

for _i from 1 to n do {player addMagazine ["30Rnd_556x45_STANAG", 15]};

where n is the number of magazines to add.

Edit: Oops, that's totally not what you were asking. My bad. This is an interesting problem, though. I'm interested to see the solution.

Edited by Irish_v5

Share this post


Link to post
Share on other sites
Sign in to follow this  

×