BIS fnc removeRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Fix page)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Function|= Comments
{{Function|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|0.74|= Game version
|1.60|Game version=


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


| 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]], [[Side]], [[Group]] or [[Object]] |Parameter 1=
|p2= '''id''': [[Number]]|=


| [[Boolean]] |= Return value
|p2= id: [[Number]] |Parameter 2=
 
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code><nowiki>[</nowiki>[[west]], 1] [[call]] [[BIS_fnc_removeRespawnInventory]];</code> |=
|x1= <code><nowiki>[</nowiki>[[west]], 1] [[call]] [[BIS_fnc_removeRespawnInventory]];</code> |Example 1=


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


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


Line 42: Line 41:
[[Category:Functions|{{uc:removeRespawnInventory}}]]
[[Category:Functions|{{uc:removeRespawnInventory}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:removeRespawnInventory}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:removeRespawnInventory}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on July 1, 2016 - 12:48 (UTC)</dd>
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt>
<dd class="note">
(ArmA 1.60)<br>
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
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
Line 61: Line 49:
To remove all inventories that are currently available you can use the following:<br>
To remove all inventories that are currently available you can use the following:<br>
<code>{
<code>{
    [ missionNamespace, _x] call [[BIS_fnc_removeRespawnInventory]];
<nowiki>[</nowiki>[[missionNamespace]], [[_x]]] [[call]] [[BIS_fnc_removeRespawnInventory]];
} forEach ([missionNamespace, true] call [[BIS_fnc_getRespawnInventories]];
} [[forEach]] (<nowiki>[</nowiki>[[missionNamespace]], [[true]]] [[call]] [[BIS_fnc_getRespawnInventories]];</code>
</code>
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.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 21:58, 27 July 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, 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.