Jump to content
Sign in to follow this  
hcpookie

Can you query for the number of magazines?

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×