Jump to content
  • 0

sqf command to get magazin capacity


ekroemer

Question

Hi all,

 

I fail to find a sqf command that will fetch me the capacity of a magazine, something like

_classname = "100Rnd_762x51_M240";
_maxRnd = GetAmmoCapacity(_classname);

with a result of 100 in the _maxRnd variable.

Surely there must be a way to do this without resorting to string analysis.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...