Finnish soldier 0 Posted September 7, 2003 Is there easier way to put magazines to units than this: this addmagazine "m16"; this addmagazine "m16"; this addMagazine "m16" etc.Example if I would want to put FN-Fal to african unit should I write those magazines nine times or something. Share this post Link to post Share on other sites
Harnu 0 Posted September 7, 2003 The easiest thing that I do is write it once, then just copy and paste. (Highlight and press Cntrl+C to copy, Cntrl+V to Pase) Share this post Link to post Share on other sites
Finnish soldier 0 Posted September 7, 2003 (Finnish soldier @ Sep. 07 2003,20:01) said: Is there easier way to put magazines to units than this: this addmagazine "m16"; this addmagazine "m16"; this addMagazine "m16" etc.Example if I would want to put FN-Fal to african unit should I write those magazines nine times or something. thanks Share this post Link to post Share on other sites
MASTAKILLA 0 Posted September 7, 2003 (Harnu @ Sep. 07 2003,20:05) said: The easiest thing that I do is write it once, then just copy and paste. (Highlight and press Cntrl+C to copy, Cntrl+V to Pase) much easier  or i would try it this way... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">clear WeaponCargo this; clear MagazineCargo this; this addMagazineCargo ["M16", 6]; this addWeaponCargo ["M16",1]; Share this post Link to post Share on other sites
edc 0 Posted September 7, 2003 Would that work? I'd think that would add weps/mags that would be carried(not used)by the unit. Share this post Link to post Share on other sites
MASTAKILLA 0 Posted September 7, 2003 i can´t exactly remember but i think i´ve seen it in a user mission Share this post Link to post Share on other sites
BAD ASS JACK 0 Posted September 7, 2003 magazinecargo and weapon cargo only works with creates, vehicles and weapon holders i think... Share this post Link to post Share on other sites
Doolittle 0 Posted September 7, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_magazine = ["M16", "M16", "M16", "M16", "HandGrenade", "HandGrenade", "HandGrenade", "HandGrenade"]; _weapon = ["M16", "Binocular"] ?sideplayer == east : _magazine = ["AK74", "AK74", "AK74", "AK74", "HandGrenade", "HandGrenade", "HandGrenade", "HandGrenade"]; _weapon = ["AK74", "Binocular"] "player addMagazine _x" forEach _magazine "player addWeapon _x" forEach _weapon player selectWeapon primaryWeapon player Doolittle Share this post Link to post Share on other sites