Jump to content
Sign in to follow this  
BomosBoy

Magazine Bullet Count / Ammo

Recommended Posts

I there a way to get the bullet count of magazines in the inventory? the command "ammo" is only for loaded magazines.

MagazinesDetail returns only a string no count.

 

Share this post


Link to post
Share on other sites

Yea i hope so thx! Is there maby a smaller command for only 1 magazine?

Share this post


Link to post
Share on other sites

Yea i hope so thx! Is there maby a smaller command for only 1 magazine?

 

Just for your current mag.  

 

Should be able to reverse and find/select/whatever out just the ammo count though.

Share this post


Link to post
Share on other sites

I think there is a lack of scripting commands for items etc.

For example i want to change my vest with a script. So i coded "removeVest player"; "player addVest "vest"; " now iam looping though all the items to return them in the right place. But the command "addItemToUniform" cant set the amount of ammo for a magazine.

The only command that support such things is "addMagazine[name, ammo]". I asked myself how BI handles the change of equipment in the inventory without loosing magazines ammo count etc and still have the items in the right place...

Share this post


Link to post
Share on other sites

I use everyContainer in my SSSC project to cover that.

it gives u the objects (2nd element of each returned container array) of vests, uniforms and backpacks. with that objects u can use addMagazineCargo.

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  

×