{"name":"getCorpse","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","games":{"arma3":"2.12"},"since":"arma3 2.12","arma3_since":"2.12","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","params":[{"name":"weaponholder","type":"Object","description":"weaponholder dropped by the dead unit","type_expr":"Object"}],"returns":{"type":"Object","type_expr":"Object","description":"dead unit"},"form":"unary","right":{"text":"weaponholder"}}],"examples":[{"code":["systemChat str getCorpse cursorObject;"]}],"see_also":["getCorpseWeaponholders","nearSupplies","allDeadMen"]}