Weapon manipulation functions with new inventory system are urgently needed, as it breaks some important functionality; see "Use cases" in additional info.
New get functions:
- currentPrimaryMagazine <unit>: return the class name of the currently loaded
magazine on primary weapon
- currentPrimaryMagazine [<unit>,<muzzle>]: return the class name of the currently loaded magazine on primary weapon by selecting the muzzle (e.g. grenade launcher)
- currentSecondaryMagazine <unit>: return the class name of the currently loaded magazine on secondary weapon
- currentHandgunMagazine <unit>: return the class name of the currently loaded magazine in the handgun
New set functions:
- <unit> loadPrimaryMagazine <magazine>: create a magazine and load it into referenced weapon of a unit OR enable 'addMagazine' to work with <weapon>
- <unit> loadPrimaryMagazine [<magazine>,<muzzle>]: overloaded function - allow to load certain magazines into different muzzles of a weapon, e.g. a grenade launcher; <muzzle> is a number; invalid combinations must be ignored
- <unit> loadSecondaryMagazine <magazine>: create a magazine and load it into referenced weapon of a unit OR enable 'addMagazine' to work with <weapon>
- <unit> loadHandgunMagazine <magazine>: create a magazine and load it into referenced weapon of a unit OR enable 'addMagazine' to work with <weapon>
- unloadPrimaryMagazine <unit>: remove a loaded magazine from the referenced weapon
- unloadSecondaryMagazine <unit>: remove a loaded magazine from the referenced weapon
- unloadHandgunMagazine <unit>: remove a loaded magazine from the referenced weapon