BIS fnc loadInventory: Difference between revisions
Jump to navigation
Jump to search
(Fixed param, syntax, examples.) |
m (GVI http://dev.arma3.com/post/spotrep-00004 First mentioned here, could be 0.50 (no evidence)) |
||
Line 5: | Line 5: | ||
| arma3 |= Game name | | arma3 |= Game name | ||
| | |0.58|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:59, 1 October 2014
Description
- Description:
- Adds a predefined loadout (either via CfgVehicles, CfgRespawnInventory, or a custom inventory saved via BIS_fnc_saveInventory) to a specified unit.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- param call BIS_fnc_loadInventory;
- Parameters:
- Object - Unit to receive the loadout.
- Config - Config entry of loadout found in either CfgVehicles or CfgRespawnInventory, OR:
- Array - Array of Strings that define what part of the loadout to ignore. Example "weapons", "uniform". Optional parameter.
- Return Value:
- Boolean
Examples
- Example 1:
loadout = [player,configfile >> "CfgVehicles" >> "B_Soldier_SL_F"] call BIS_fnc_loadInventory; // Gives loadout of BLUFOR Squad Leader to player unit.
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