BIS fnc loadInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
|p1= |= Parameter 1
|p1= |= Parameter 1


| |= Return value
| Nothing |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[soldier1, [missionNamespace, "loadout"]] call BIS_fnc_saveInventory; //save loadout of object called soldier1 in variable "loadout"<br/>[player, [missionNamespace, "loadout"]] call BIS_fnc_loadInventory; //load inventory from variable "loadout", onto player</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:07, 6 September 2014


Hover & click on the images for description

Description

Description:
/*

	Description:
	Add config defined inventory to an unit

	Parameter(s):
		0: OBJECT - object which will receive the loadout
		1:
			CONFIG - link to CfgVehicles soldier or to CfgRespawnInventory
			ARRAY in format [NAMESPACE or GROUP or OBJECT,STRING] - inventory saved using BIS_fnc_saveInventory
		2: ARRAY of STRINGs - config entries to be ignored (e.g. "weapons", "uniform", ...)

	Returns:
	BOOL
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Nothing

Examples

Example 1:
[soldier1, [missionNamespace, "loadout"]] call BIS_fnc_saveInventory; //save loadout of object called soldier1 in variable "loadout"
[player, [missionNamespace, "loadout"]] call BIS_fnc_loadInventory; //load inventory from variable "loadout", onto player

Additional Information

See also:
BIS_fnc_saveInventory

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