BIS fnc removeRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| (\[\[[a-zA-Z ]+\]\]) \|x1=" to " |r1=$1 |x1=")
m (Some wiki formatting)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.60
|1.60


|gr1= Respawn
|gr1= Respawn
Line 9: Line 8:
|eff= global
|eff= global


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


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


|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]]
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]]
Line 17: Line 16:
|p2= id: [[Number]]
|p2= id: [[Number]]


|r1=[[Boolean]]
|r1= [[Boolean]]


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


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


|seealso= [[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]]
}}
}}


 
{{Note
 
|user= Krzmbrzl00
[[Category:{{Name|arma3}}: Functions|{{uc:removeRespawnInventory}}]]
|timestamp= 20160701172900
 
|text= To remove all inventories that are currently available you can use the following:<br>
<dl class="command_description">
<sqf>
<dt></dt>
{
<dd class="notedate">Posted on July 1, 2016 - 17:29 (UTC)</dd>
[missionNamespace, _x] call BIS_fnc_removeRespawnInventory;
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt>
} forEach ([missionNamespace, true] call BIS_fnc_getRespawnInventories;
<dd class="note">
</sqf>
To remove all inventories that are currently available you can use the following:<br>
<code>{
<nowiki>[</nowiki>[[missionNamespace]], [[Magic Variables#x|_x]]] [[call]] [[BIS_fnc_removeRespawnInventory]];
} [[forEach]] (<nowiki>[</nowiki>[[missionNamespace]], [[true]]] [[call]] [[BIS_fnc_getRespawnInventories]];</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.
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>

Latest revision as of 12:42, 13 July 2022

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: Respawn BIS_fnc_addRespawnInventory BIS_fnc_getRespawnInventories BIS_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
Krzmbrzl00 - c
Posted on Jul 01, 2016 - 17:29 (UTC)
To remove all inventories that are currently available you can use the following:
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.