Sorry, I don't know the answer to this one, but I'm having the same problem as you. In my case, I need to count the number of mines in an ammo box. Sadly, the magazines function doesn't seem to work on ammo boxes, because all I get from it is an empty array.