Home   Help Search Login Register  

Author Topic: Countammo ?  (Read 451 times)

0 Members and 1 Guest are viewing this topic.

The_Rocket

  • Guest
Countammo ?
« on: 04 Mar 2003, 17:22:34 »
Hey, how do I count my ais ammo....

Im making a script where the ammount of an ais weapon is needed...

Do anyone know how to do?

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Countammo ?
« Reply #1 on: 04 Mar 2003, 18:40:36 »
there is a command called magazines which returns all the ammo of a unit.

SO you could use magazines player to return an array containinf all of the magazines he has

If you wanted to know how many m16 the player had you would do this.

_magcount = {_x == {m16}} count magazines player
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.