hcpookie 3770 Posted July 16, 2011 Is there a way to count the number of magazines in a script? As per the Biki, "magazines" returns the array of magazines in a unit, and the empty magazine counts, so it never returns "0". Creating a local variable to return "magazines" returns the actual magazine names. I cannot find a way to return a numeric value. This is for a unit that only has one kind of magazine. Share this post Link to post Share on other sites
kylania 568 Posted July 18, 2011 To check if someone has one or more AK mags from a trigger cond: "30Rnd_545x39_AK" in magazines player Share this post Link to post Share on other sites
hcpookie 3770 Posted July 19, 2011 Thanks, I'll check this out! Share this post Link to post Share on other sites
celery 8 Posted July 19, 2011 count magazines unit returns a number. Share this post Link to post Share on other sites
Master85 1 Posted July 23, 2011 and to get the exact number of AK mags of the player: {_x == "30Rnd_545x39_AK"} count magazines player Share this post Link to post Share on other sites