BIS fnc loadInventory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (example) |
||
Line 33: | Line 33: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[soldier1, [ | |x1= <code>[soldier1, [soldier1, "loadout"]] [[call]] [[BIS_fnc_saveInventory]]; //save inventory into object variable called "loadout". | ||
[ [[player]], [ soldier1, "loadout"]] [[call]] [[BIS_fnc_loadInventory]]; //load inventory from variable "loadout" onto player</code> |= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:44, 6 September 2014
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:
- Bool
Examples
- Example 1:
[soldier1, [soldier1, "loadout"]] call BIS_fnc_saveInventory; //save inventory into object variable called "loadout". [ player, [ soldier1, "loadout"]] call BIS_fnc_loadInventory; //load inventory from variable "loadout" onto player
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