BIS fnc removeRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Remove a respawn inventory added by [[BIS_fnc_addRespawnInventory]]. |= Description
| Remove a respawn inventory added by [[BIS_fnc_addRespawnInventory]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [target,id] call [[BIS_fnc_removeRespawnInventory]]; |= Syntax
| [target,id] call [[BIS_fnc_removeRespawnInventory]]; |SYNTAX=


|p1= '''target''': [[Namespace]] or [[Side]] or [[Group]] or [[Object]]|=
|p1= '''target''': [[Namespace]] or [[Side]] or [[Group]] or [[Object]]|=
|p2= '''id''': [[Number]]|=
|p2= '''id''': [[Number]]|=


| [[Boolean]] |= Return value
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 27: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_getRespawnInventories]], [[Arma 3 Respawn]] |= See also
| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_getRespawnInventories]], [[Arma 3 Respawn]] |SEEALSO=


}}
}}

Revision as of 14:32, 7 April 2019

Hover & click on the images for description

Description

Description:
Remove a respawn inventory added by BIS_fnc_addRespawnInventory.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[target,id] call BIS_fnc_removeRespawnInventory;
Parameters:
target: Namespace or Side or Group or Object
id: Number
Return Value:
Boolean

Examples

Example 1:
[west, 1] call BIS_fnc_removeRespawnInventory;
Example 2:
myRespawnInventory = [missionNamespace,"ATSniper"] call BIS_fnc_addRespawnInventory; myRespawnInventory call BIS_fnc_removeRespawnInventory;

Additional Information

See also:
BIS_fnc_addRespawnInventoryBIS_fnc_getRespawnInventoriesArma 3 Respawn

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 - 12:48 (UTC)
Krzmbrzl00
(ArmA 1.60)
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
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;