Jump to content

Sign in to follow this  
Finnish soldier

Adding magazines

Recommended Posts

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

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 @ 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
  (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  rock.gif 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

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

<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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×