{"name":"BIS_fnc_removeRespawnInventory","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.60"}],"since":{"game":"arma3","name":"Arma 3","version":"1.60"},"arma3_since":"1.60","branch":null,"locality":{"argument":null,"effect":"global","server_exec":false},"exec":null,"description":"Remove a respawn inventory added by BIS_fnc_addRespawnInventory.","syntaxes":[{"syntax":"[target, id] call BIS_fnc_removeRespawnInventory","since":null,"effect":null,"exec":null,"params":[{"name":"target","type":"Namespace, Side, Group or Object","optional":false,"default":null,"description":null,"types":["Namespace","Side","Group","Object"],"since":null,"text":"target: Namespace, Side, Group or Object"},{"name":"id","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"id: Number"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n[west, 1] call BIS_fnc_removeRespawnInventory;\n```","code":["[west, 1] call BIS_fnc_removeRespawnInventory;"]},{"text":"```sqf\nprivate _myRespawnInventory = [missionNamespace,\"ATSniper\"] call BIS_fnc_addRespawnInventory;\n_myRespawnInventory call BIS_fnc_removeRespawnInventory;\n```","code":["private _myRespawnInventory = [missionNamespace,\"ATSniper\"] call BIS_fnc_addRespawnInventory;\n_myRespawnInventory call BIS_fnc_removeRespawnInventory;"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Respawn","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.60"],"docblock":null,"filled_from_docblock":[]}