getUnitLoadout: Difference between revisions
Jump to navigation
Jump to search
SilentSpike (talk | contribs) (Add alternative syntax and examples) |
m (Removed note about command not being finished) |
||
Line 3: | Line 3: | ||
|1.58|= Game version | |1.58|= Game version | ||
| Returns an array with all assigned items, weapons, containers and their stored items. | | Returns an array with all assigned items, weapons, containers and their stored items. | ||
Detailed explanation of the returned array: [[Talk:getUnitLoadout]] | Detailed explanation of the returned array: [[Talk:getUnitLoadout]]|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 10:03, 10 May 2018
Description
- Description:
- Returns an array with all assigned items, weapons, containers and their stored items. Detailed explanation of the returned array: Talk:getUnitLoadout
- Groups:
- Uncategorised
Syntax
- Syntax:
- getUnitLoadout unit
- Parameters:
- unit: Object
- Return Value:
- Array - Array containing all inventory items
Alternative Syntax
- Syntax:
- getUnitLoadout class
- Parameters:
- class: String or Config
- Return Value:
- Array - Array containing all inventory items
Examples
- Example 1:
getUnitLoadout player;
- Example 2:
getUnitLoadout "B_Soldier_F";
- Example 3:
getUnitLoadout (configFile >> "CfgVehicles" >> "B_Soldier_F");
Additional Information
- See also:
- setUnitLoadout
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