{"name":"weaponAccessoriesCargo","operator":null,"title":"weaponAccessoriesCargo","type":"command","url":"https://community.bistudio.com/wiki/weaponAccessoriesCargo","revid":352198,"updated":"2024-02-01T23:26:01Z","groups":["Vehicle Inventory","Containers","Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.22"}],"since":{"game":"arma3","name":"Arma 3","version":"1.22"},"arma3_since":"1.22","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns array with all items assigned to the given weapon in given cargo container.\n\n> [!WARNING]\n> This is unofficial documentation. All Information here is as it exists in the Engine. It might not reflect the reality.","syntaxes":[{"syntax":"container weaponAccessoriesCargo [weaponId, creatorId]","since":null,"effect":null,"exec":null,"params":[{"name":"container","type":"Object","optional":false,"default":null,"description":"cargo container","types":["Object"],"since":null,"text":"container: Object - cargo container"},{"name":"weaponId","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"weaponId: Number"},{"name":"creatorId","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"creatorId: Number"}],"returns":{"type":"Array","types":["Array"],"description":"[silencer, laserpointer/flashlight, optics, bipod]","text":"Array - [silencer, laserpointer/flashlight, optics, bipod]"},"form":"binary","operator":null,"left":{"text":"container","types":["Object"]},"right":{"text":"[weaponId, creatorId]","types":["Array"]}}],"examples":[{"text":"-","code":[]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["weaponAccessories","primaryWeaponItems","handgunItems","secondaryWeaponItems","weaponsItems","weaponsItemsCargo","removeWeaponAttachmentCargo","removeWeaponCargo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Containers","Command Group: Unit Inventory","Command Group: Vehicle Inventory","Introduced with Arma 3 version 1.22","Scripting Commands"]}