{"name":"getCorpse","operator":null,"title":"getCorpse","type":"command","url":"https://community.bistudio.com/wiki/getCorpse","revid":352960,"updated":"2024-03-07T14:49:08Z","groups":["Unit Inventory","Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.12"}],"since":{"game":"arma3","name":"Arma 3","version":"2.12"},"arma3_since":"2.12","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the corpse associated with given weaponholder. When unit is killed and had a weapon, the weapon is placed inside \"WeaponHolderSimulated\" and dropped together with the unit. This command returns the dead body associated with this weaponholder.","syntaxes":[{"syntax":"getCorpse weaponholder","since":null,"effect":null,"exec":null,"params":[{"name":"weaponholder","type":"Object","optional":false,"default":null,"description":"weaponholder dropped by the dead unit","types":["Object"],"since":null,"text":"weaponholder: Object - weaponholder dropped by the dead unit"}],"returns":{"type":"Object","types":["Object"],"description":"dead unit","text":"Object - dead unit"},"form":"unary","operator":null,"left":null,"right":{"text":"weaponholder","types":["Object"]}}],"examples":[{"text":"```sqf\nsystemChat str getCorpse cursorObject;\n```","code":["systemChat str getCorpse cursorObject;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getCorpseWeaponholders","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.12","Scripting Commands"]}