BIS fnc removeRespawnInventory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
(ArmA 1.60)<br> | (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 | 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 --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on July 1, 2016 - 17:29 (UTC)</dd> | |||
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt> | |||
<dd class="note"> | |||
To remove all inventories that are currently available you can use the following:<br> | |||
<code>{ | |||
[ missionNamespace, _x] call [[BIS_fnc_removeRespawnInventory]]; | |||
} forEach ([missionNamespace, true] call [[BIS_fnc_getRespawnInventories]]; | |||
</code> | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 18:30, 1 July 2016
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
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;