Jump to content
Sign in to follow this  
Undeceived

Count current weapon magazines

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×