{"name":"getCorpseWeaponholders","operator":null,"title":"getCorpseWeaponholders","type":"command","url":"https://community.bistudio.com/wiki/getCorpseWeaponholders","revid":369742,"updated":"2024-10-08T15:06:00Z","groups":["Unit Inventory","Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns primary and secondary weapon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is dropped into primary weaponholder and secondary weapon is dropped into secondary.","syntaxes":[{"syntax":"getCorpseWeaponholders corpse","since":null,"effect":null,"exec":null,"params":[{"name":"corpse","type":"Object","optional":false,"default":null,"description":"dead unit","types":["Object"],"since":null,"text":"corpse: Object - dead unit"}],"returns":{"type":null,"types":["Array","Object"],"description":null,"text":"Array of Objects in format [primaryWeaponHolder, secondaryWeaponHolder]"},"form":"unary","operator":null,"left":null,"right":{"text":"corpse","types":["Object"]}}],"examples":[{"text":"```sqf\nsystemChat str getCorpseWeaponholders cursorObject;\n```","code":["systemChat str getCorpseWeaponholders cursorObject;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getCorpse","nearSupplies","allDeadMen"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Command Group: Unit Inventory","Introduced with Arma 3 version 2.18","Scripting Commands"]}