Jump to content
Sign in to follow this  
gonza

how to remove satchels for a box

Recommended Posts

Hello

this removeweapon "PipeBomb" and

this removemagazine "PipeBomb" don't work

clearmagazinescargo work but it delete all magazines

so how to delete shatchel from a box

THX

Share this post


Link to post
Share on other sites

I would suggest to empty the ammobox via "clearMagazineCargo" and then refill it with the suff you need: "addWeaponcargo [...]" and "addMagazineCargo [...]"

I believe there is no other way?

Share this post


Link to post
Share on other sites

ok thanks

what is the best for add multiple magazines in one command

someting like that

for "_i" from 1 to 10 do {this addMagazine "M16" and this addMagazine "G36";...}

Share this post


Link to post
Share on other sites

You can't add magazines for several different weapons in one command.

However you can add number of magazines.

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

this addMagazineCargo ["MagName", Number]

example:

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

this addMagazineCargo ["30Rnd_556x45_Stanag", 10]

Share this post


Link to post
Share on other sites

ok thanx

I use

clearMagazineCargo this;clearWeaponCargo this;

this addWeaponCargo ["G36K",10];this addMagazineCargo ["30Rnd_556x45_G36",50];

this addWeaponCargo ["M16A2",10];this addMagazineCargo ["30Rnd_556x45_Stanag",50];

this addWeaponCargo ["M9SD",10];this addMagazineCargo ["15Rnd_9x19_M9SD",30];

this addWeaponCargo ["STINGER",4];this addMagazineCargo ["STINGER",8];

this addWeaponCargo ["M136",4];this addMagazineCargo ["M136",12];

this addWeaponCargo ["Binocular",4];

Share this post


Link to post
Share on other sites
You can't add magazines for several different weapons in one command.

Foreach?  whistle.gif

ammo.sqf

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

_crate = _this;

_magazines = [["30Rnd_556x45_G36",50],["30Rnd_556x45_Stanag",50],["15Rnd_9x19_M9SD",30],["STINGER",8],["M136",12]];

_weapons = [["G36K",10],["M16A2",10],["M9SD",10],["STINGER",4],["M136",4],["Binocular",4]];

{_crate addmagazinecargo _X} foreach _magazines;

{_crate addweaponcargo _X} foreach _weapons;

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  

×