Automatically fill given ammo crate with ammo fitting the player's weapons

Description
This function fills given container object with magazines that are compatible with the weapons all players are equipped with.

Function header
Function name:MRH_fnc_MRH_fnc_AmmoCrate; Author: Mr H. Description: this function gets all weapons currently present in all playable units' inventories and fills the box with fiting ammunition for these weapons, it includes handguns and launchers. The box receives an ace 3 interaction that allows players to refresh its contents. Return value: None Public: Yes Parameters: 0-  Box must be a container object 1-  ammount of items, per item. 2-  Content is unlimited, if true the box will be refilled everytime its inventory is opened. 3-  Can be refreshed, if true the box's content can be refreshed useful if players change their weapons mid game. The box will receive an ACE 3 interaction action to refresh its contents. It makes the box's content unlimited. Example(s): [this,10,true,true] call MRH_fnc_AmmoCrate;