Jump to content
Sign in to follow this  
Undeceived

vestMagazines and uniformMagazines return strange arrays. I just need simple mag list

Recommended Posts

[sorry, guys, I found the answer one minute after posting this... See end of the post. )

Why do vestMagazines and uniformMagazines return arrays with that strange additional information? :confused:

Example:

[ "6.5mm 30Rnd STANAG Mag(30/30)[id/cr:4/0](2x)", "9mm 16Rnd Mag(16/16)[id/cr:7/0](2x)", "RGO Frag Grenade(1/1)[id/cr:10/0](2x)"]

I need a simple magazine array, like e.g. that one returns:

magsinbackpack = magazineCargo unitBackpack player;

This one delivers a nice, clean array of the magazines in the players backpack, e.g. ["MagType1","MagType1","MagType2"...]. :inlove:

So where are the commands unitVest and unitUniform?? According to this comment in the bug tracker (link) they were supposed to be added by BIS, but they don't work ingame.

Is there another way to get such a clean array of magazines in vests and uniforms?

And also of weapons and items?

Thank you for your help!

---------- Post added at 22:04 ---------- Previous post was at 22:00 ----------

I'm so sorry, guys... :o

magazineCargo uniformContainer player

does the trick.

SORRY for the little rant. :D

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  

×