BIS fnc deleteInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(37 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Inventory


|1.00|= Game version
|descr= Delete loadout saved using [[BIS_fnc_saveInventory]].
____________________________________________________________________________________________


| <pre>/*
|s1= [unit, [target, loadout]] call [[BIS_fnc_deleteInventory]]


Description:
|p1= unit: [[Object]] - unit whose inventory should be saved
Delete loadout saved using BIS_fnc_saveInventory


Parameter(s):
|p2= target: [[Namespace]], [[Group]] or [[Object]] - target where the loadout is stored
0: OBJECT - unit of which loadout will be saved
1: ARRAY in format
0: NAMESPACE or GROUP or OBJECT - target in which namespace the loadout is saved
1: STRING - loadout name


Returns:
|p3= loadout: [[String]] - loadout name
BOOL
*/


|r1= [[Boolean]]


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>[player, [missionNamespace, "BIS_inv"]] call BIS_fnc_deleteInventory;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_deleteInventory]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_loadInventory]] [[BIS_fnc_exportInventory]] [[BIS_fnc_saveInventory]] [[getUnitLoadout]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Inventory|{{uc:deleteInventory}}]]
[[Category:Functions|{{uc:deleteInventory}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:deleteInventory}}]]

Latest revision as of 19:01, 23 March 2024

Hover & click on the images for description

Description

Description:
Delete loadout saved using BIS_fnc_saveInventory.
Execution:
call
Groups:
Inventory

Syntax

Syntax:
[unit, [target, loadout]] call BIS_fnc_deleteInventory
Parameters:
unit: Object - unit whose inventory should be saved
target: Namespace, Group or Object - target where the loadout is stored
loadout: String - loadout name
Return Value:
Boolean

Examples

Example 1:
[player, [missionNamespace, "BIS_inv"]] call BIS_fnc_deleteInventory;

Additional Information

See also:
BIS_fnc_loadInventory BIS_fnc_exportInventory BIS_fnc_saveInventory getUnitLoadout

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