Jump to content
Sign in to follow this  
Guest [B.B.S.] T_D

contain of ammobox

Recommended Posts

Guest [B.B.S.] T_D

How i can get the contain of an ammobox? I havent find a command for it. So you know how to solve this?

Share this post


Link to post
Share on other sites

Sorry, I don't know the answer to this one, but I'm having the same problem as you. In my case, I need to count the number of mines in an ammo box. Sadly, the magazines function doesn't seem to work on ammo boxes, because all I get from it is an empty array. sad_o.gif

Share this post


Link to post
Share on other sites

For a campaign it'd be possible; if you use the weapon pool (like in Resistance), you can transfer the whole ammobox to the weapon pool.

First you check how many of every weapon you have in the weapon pool. Then you you transfer the ammobox to the weapon pool; Then you check again how many of every weapon you have in the weapon pool. The difference is the contents of the ammo box.

You should look up commands like pickWeaponPool, queryMagazines,queryWeapons (I'm not sure about those commands, but they sound like those)

Share this post


Link to post
Share on other sites
Guest [B.B.S.] T_D

Its not for campaign but i hope i can use the weaponpool in sp too. Thx for this  wink_o.gif

EDIT

This dont want to work sad_o.gif

I think its not possible, but any ideas are welcome wink_o.gif

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  

×