Home   Help Search Login Register  

Author Topic: Re-supplying Ammo to machine gun  (Read 721 times)

0 Members and 1 Guest are viewing this topic.

MONOLITH

  • Guest
Re-supplying Ammo to machine gun
« on: 10 Oct 2003, 22:49:49 »
Hi,

just a little problem here. I currently have some Machine guns (M2's) that are initially empty (not on any side) on a map , they will be used alot, and i was just wondering if anyone knew how to replenish the ammo for the guns once they have depleted their ammunition. I can get it working with soldiers but not with fixed machine guns. Hope somebody can help.

Thanks

Blitzer

  • Guest
Re:Re-supplying Ammo to machine gun
« Reply #1 on: 11 Oct 2003, 04:07:53 »
Giday MONOLITH,
                           I think that you could probably use the this addMagazine command in the init line of the M2.
Not to sure the exact line but could be
this addMagazine "M2machinegun"
Maybe.
Hope that gets you in the right direction

Offline oyman

  • Members
  • *
  • king of pings
Re:Re-supplying Ammo to machine gun
« Reply #2 on: 11 Oct 2003, 05:16:26 »
maybe u can get ammo truck to go the M2 when  

ammo is low or u can just so what Warsmith said and add

some

extra magazines like this (put in init field of M2 )

this addmagazine "machinegun12_7"
       

m21man

  • Guest
Re:Re-supplying Ammo to machine gun
« Reply #3 on: 11 Oct 2003, 23:37:11 »
I don't think you can just addmagazines to an M2. You can always createvehicle an ammotruck next to the machinegun, and then it might be able to rearm (I don't know if they can rearm from an ammo truck, I've never tried :P ). But then you need some way to check the ammo level of the machinegun. I don't believe that you can do that, unless I'm missing out on something :hmm: ...

:gunman: :gunman: :gunman:

KyleSarnik

  • Guest
Re:Re-supplying Ammo to machine gun
« Reply #4 on: 12 Oct 2003, 02:35:26 »
Yes you can addmagazine it but you've got the wrong mag name. Use:

M2 addmagazine "Browning"

that will fill it up again... Or just put it in the init, and give it say 5 mags, thats 5x however many is in a mag...

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Re-supplying Ammo to machine gun
« Reply #5 on: 15 Oct 2003, 17:50:39 »
i used a trigger which counted the number of magazines the mgun had, and then when it was <1 i simply added a magazine to it
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

HuNtA

  • Guest
Re:Re-supplying Ammo to machine gun
« Reply #6 on: 28 Oct 2003, 08:46:40 »
I jus use the addMagazine thing in a quick script that loops until the mgun has 50 mags  8)

 :gunman:

Komuna

  • Guest
Re:Re-supplying Ammo to machine gun
« Reply #7 on: 28 Oct 2003, 15:54:56 »
I jus use the addMagazine thing in a quick script that loops until the mgun has 50 mags

Hmm... I belive you don't need the script. The "addmagazine" command automaticaly adds a full set of ammo to a vehicle (which doesn't aply to units).

For example, if a A10 runs out of LGB's, if you add it a "single LGB mag" - eh! - it will have his wings filled to the brim...