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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now