Jump to content
Sign in to follow this  
PLRSniper

How do i count ammo in a ammunition box?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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  

×