This function gets the weapon cargo of an object, and also the weapon object cargo (which is normally returned in a different array structure) and returns both in the array structure expected of getWeaponCargo.
The intention behind writing this function is to aid searches of weapon cargo in contains that contain the new (at time of writing) weapon 'Objects' - as they are not returned by getWeaponCargo.
Object weapons will be returned as separate categories with count 1.
[unit] call fn_vbs_getWeaponAndObjectCargo
|Return Value:||Array - similar format as in getWeaponCargo. Each object weapon will be returned as separate categories with count 1.|
_weaponCargo = [player] call fn_vbs_getWeaponAndObjectCargo
|See also:||getWeaponCargo, getWeaponObjectsCargo|