BIS fnc inventoryExists: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created page)
 
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Inventory


<!---|arg= local |Multiplayer Arguments=--->
|descr= Check if loadout with given name exists.


<!---|eff= local |Multiplayer Effects=--->
|s1= [source, name] call [[BIS_fnc_inventoryExists]]


| <pre>/*
|p1= source: [[Namespace]], [[Group]] or [[Object]] - (Optional, default [[missionNamespace]]) loadout location
Author: Nelson Duarte


Description:
|p2= name: [[String]] - (Optional, default "")
Check if loadout with given name exists


Parameter(s):
|r1= [[Boolean]] - [[true]] if found, [[false]] otherwise
0: NAMESPACE or GROUP or OBJECT - target in which namespace the loadout will be saved
1: STRING - loadout name


Returns:
|x1= <sqf>private _hasSuperLoadout = [missionNamespace, "mySuperLoadout"] call BIS_fnc_inventoryExists;</sqf>
BOOL - True if existent, false if not
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=


|[] call [[BIS_fnc_inventoryExists]]|Syntax=
|seealso= [[setUnitLoadout]] [[getUnitLoadout]] [[BIS_fnc_saveInventory]] [[BIS_fnc_deleteInventory]] [[BIS_fnc_loadInventory]]
 
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
 
|Datatype - description|Return value=
 
|x1= <code></code>|Example 1=
 
| |See also=
}}
}}
[[Category:Function Group: Inventory|{{uc:inventoryExists}}]]
[[Category:Functions|{{uc:inventoryExists}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:inventoryExists}}]]

Latest revision as of 18:00, 13 July 2022

Hover & click on the images for description

Description

Description:
Check if loadout with given name exists.
Execution:
call
Groups:
Inventory

Syntax

Syntax:
[source, name] call BIS_fnc_inventoryExists
Parameters:
source: Namespace, Group or Object - (Optional, default missionNamespace) loadout location
name: String - (Optional, default "")
Return Value:
Boolean - true if found, false otherwise

Examples

Example 1:
private _hasSuperLoadout = [missionNamespace, "mySuperLoadout"] call BIS_fnc_inventoryExists;

Additional Information

See also:
setUnitLoadout getUnitLoadout BIS_fnc_saveInventory BIS_fnc_deleteInventory BIS_fnc_loadInventory

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