Results 1 to 5 of 5

Thread: How do i count ammo in a ammunition box?

  1. #1
    Gunnery Sergeant
    Join Date
    Jul 18 2001
    Location
    Gothenburg, Sweden
    Posts
    581
    Hello...

    I already know about AddWeaponCargo and so on...
    But i need to know how mutch ammo is in an existing box...

    I want a message that is telling me when an ammobox has 3 grenades left...

    There's gotta be a command for it...

    Anyone knows?

  2. #2
    I don't think there is a command for this PLRSniper (I thought you left the community)?

    There was a thread on this a couple of weeks ago, maybe you could try and remove all weapons from the box and then add the weapons individually?

    RED

  3. #3
    Gunnery Sergeant
    Join Date
    Jul 18 2001
    Location
    Gothenburg, Sweden
    Posts
    581
    Author of the Thread
    Hi Red... Nice thing you remebered me...
    Since i started working (Was unemployed) i dont have time for OFP no more...

    But sometimes im working on my MEGA project...
    And i find all these problems...!

    If i would tell you about all the things that include my project i would have to type for an hour or so...

    It is of most importance that i can count the ammout of ammo in a truck...

    A group in my scenario can choose from various vehicles but will do so but calculating the most fitting vehicle...

    If they think they are going to meet heavy resistance the will choose a armoured vehicle...

    If they need to fight moving troops and quickly get away or is in a hurry to complete the objective the should use a truck...
    And if the group commands more than one truck it should shoose the one with least damage, most fuel and supplies...

    Therefor i need to count the grenades and m16 mags in the vehicle...

    And that vehicle will then get a FINAL score...

    Hmm... If the command doesn't exist i would love it if BIS implemented it...

    Thanks for the quick response RED...

  4. #4
    Sounds good, can't wait to play it. This command would be usefull, Suma if you are reading this could you think about adding this feature?

    RED

  5. #5
    You could give it a try on the weapon pool.

    I'm not sure, if you can use the weapon pool in a single
    mission, but what i'm sure is: you can querry the weapon
    pool (this returns the number of mags or weapons).

    So what i mean is: transfer the weaponcargo of one truck
    to the weapon pool - do a querry on it - and whoop -> result.

    Then do it again with the next truck, etc.

    ~S~ CD
    http://www.swint.demon.nl/ofp/ofpec_work.gif
    Never argue with idiots - they just take you down to their level
    to beat you there with experience
    arabic objects/buildings thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •