ekroemer Posted August 27, 2015 Report Share Posted August 27, 2015 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 More sharing options...
1 seelenapparat Posted August 27, 2015 Report Share Posted August 27, 2015 (edited) _classname = "100Rnd_762x51_M240";_maxRnd = getNumber (configFile >> "CfgMagazines">> _classname >> "count"); €: or are you trying to get the actual count, when already in use? Edited August 27, 2015 by seelenapparat ekroemer 1 Link to comment Share on other sites More sharing options...
0 ekroemer Posted August 28, 2015 Author Report Share Posted August 28, 2015 Thanks!And no, I can get the actual count easily, I needed the capacity just as you provided :-) Link to comment Share on other sites More sharing options...
Question
ekroemer
Hi all,
I fail to find a sqf command that will fetch me the capacity of a magazine, something like
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 accountSign in
Already have an account? Sign in here.
Sign In Now