Undeceived 392 Posted June 19, 2014 How can I count the number of magazines of the currently selected weapon of a unit? Thanks for your help! Share this post Link to post Share on other sites
Larrow 2795 Posted June 19, 2014 Something like... //Useable mags { _x in getArray (configFile >> "CFGWeapons" >> (currentWeapon player) >> "magazines") }count (magazines player); //Match current mag { _x == currentMagazine player }count (magazines player); Share this post Link to post Share on other sites
Undeceived 392 Posted August 19, 2014 Sorry, it seems I totally forgot this thread. I even forgot what I needed this for. :D Strange. :D Thanks a lot, Larrow! :notworthy: If I can't get it working, I'll get back to you. Share this post Link to post Share on other sites