BIS fnc removeRespawnInventory: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Respawn |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: Respawn(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 40: | Line 40: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:removeRespawnInventory}}]] | [[Category:Functions|{{uc:removeRespawnInventory}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:removeRespawnInventory}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:removeRespawnInventory}}]] |
Revision as of 11:23, 12 October 2020
Description
- Description:
- Remove a respawn inventory added by BIS_fnc_addRespawnInventory.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [target, id] call BIS_fnc_removeRespawnInventory;
- Parameters:
- target: Namespace, Side, Group or Object
- id: Number
- Return Value:
- Boolean
Examples
- Example 1:
[west, 1] call BIS_fnc_removeRespawnInventory;
- Example 2:
private _myRespawnInventory = [missionNamespace,"ATSniper"] call BIS_fnc_addRespawnInventory; _myRespawnInventory call BIS_fnc_removeRespawnInventory;
Additional Information
- See also:
- Arma 3 RespawnBIS_fnc_addRespawnInventoryBIS_fnc_getRespawnInventoriesBIS_fnc_setRespawnInventory
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
- Posted on July 1, 2016 - 17:29 (UTC)
- Krzmbrzl00
-
To remove all inventories that are currently available you can use the following:
{ [missionNamespace, _x] call BIS_fnc_removeRespawnInventory; } forEach ([missionNamespace, true] call BIS_fnc_getRespawnInventories;
If all available inventories are removed, the default inventory for the current unit (as it would be placed in the editor) will be added automatically.