getUnitLoadout
Jump to navigation
Jump to search
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 1
- Syntax:
- getUnitLoadout unit
- Parameters:
- unit: Object
- Return Value:
- Array - Array containing all inventory items
Syntax 2
- Syntax:
- getUnitLoadout [unit, fullMagazines]
- Parameters:
- [unit, fullMagazines]: Array
- unit: Object
- fullMagazines: Boolean
- Return Value:
- Array - Array containing all inventory items
Syntax 3
- Syntax:
- getUnitLoadout name
- Parameters:
- name: String - class name
- Return Value:
- Array - Array containing all inventory items
Syntax 4
- Syntax:
- getUnitLoadout config
- Parameters:
- config: Config - config class
- Return Value:
- Array - Array containing all inventory items
Examples
- Example 1:
getUnitLoadout player;
- Example 2:
getUnitLoadout [player, true];
- Example 3:
getUnitLoadout "B_Soldier_F";
- Example 4:
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