BIS fnc removeRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.60|Game version=
|1.60


|gr1= Respawn |GROUP1=
|gr1= Respawn


|eff= global |MP Effect=
|eff= global |MP Effect=


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


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


|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] |Parameter 1=
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]]


|p2= id: [[Number]] |Parameter 2=
|p2= id: [[Number]]


| [[Boolean]] |RETURNVALUE=
| [[Boolean]]
   
   
|x1= <code><nowiki>[</nowiki>[[west]], 1] [[call]] [[BIS_fnc_removeRespawnInventory]];</code> |Example 1=
|x1= <code><nowiki>[</nowiki>[[west]], 1] [[call]] [[BIS_fnc_removeRespawnInventory]];</code>


|x2= <code>[[private]] _myRespawnInventory = [<nowiki/>[[missionNamespace]],"ATSniper"] [[call]] [[BIS_fnc_addRespawnInventory]];
|x2= <code>[[private]] _myRespawnInventory = [<nowiki/>[[missionNamespace]],"ATSniper"] [[call]] [[BIS_fnc_addRespawnInventory]];
_myRespawnInventory [[call]] [[BIS_fnc_removeRespawnInventory]];</code> |Example 2=
_myRespawnInventory [[call]] [[BIS_fnc_removeRespawnInventory]];</code>


| [[Arma 3 Respawn]], [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_getRespawnInventories]], [[BIS_fnc_setRespawnInventory]] |SEEALSO=
| [[Arma 3 Respawn]], [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_getRespawnInventories]], [[BIS_fnc_setRespawnInventory]]
}}
}}



Revision as of 00:39, 18 January 2021

Hover & click on the images for description

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

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.