{"name":"BIS_fnc_removeRespawnInventory","title":"BIS fnc removeRespawnInventory","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_removeRespawnInventory","revid":327903,"updated":"2022-07-13T11:42:18Z","groups":["Respawn"],"status":"ok","games":{"arma3":"1.60"},"since":"arma3 1.60","arma3_since":"1.60","locality":{"effect":"global"},"description":"Remove a respawn inventory added by BIS_fnc_addRespawnInventory.","syntaxes":[{"syntax":"[target, id] call BIS_fnc_removeRespawnInventory","params":[{"name":"target","type":"Namespace, Side, Group or Object","type_expr":"Namespace | Side | Group | Object"},{"name":"id","type":"Number","type_expr":"Number"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["[west, 1] call BIS_fnc_removeRespawnInventory;"]},{"code":["private _myRespawnInventory = [missionNamespace,\"ATSniper\"] call BIS_fnc_addRespawnInventory;\n_myRespawnInventory call BIS_fnc_removeRespawnInventory;"]}],"see_also":["Arma 3: Respawn","BIS_fnc_addRespawnInventory","BIS_fnc_getRespawnInventories","BIS_fnc_setRespawnInventory"],"notes":[{"user":"Krzmbrzl00","date":"2016-07-01T17:29:00Z","text":"To remove all inventories that are currently available you can use the following:\n\n```sqf\n{\n    [missionNamespace, _x] call BIS_fnc_removeRespawnInventory;\n} forEach ([missionNamespace, true] call BIS_fnc_getRespawnInventories;\n```\n\nIf all available inventories are removed, the default inventory for the current unit (as it would be placed in the editor) will be added automatically."}]}