getUnitLoadout: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Remove syntaxhighlight spoiler hack) |
||
Line 28: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</spoiler> | </spoiler> | ||
}} | }} | ||
Latest revision as of 13:44, 23 June 2023
Description
- Description:
- Returns a Unit Loadout Array with all assigned items, weapons, containers and their stored items.
- Groups:
- Unit Inventory
Syntax 1
- Syntax:
- getUnitLoadout unit
- Parameters:
- unit: Object
- Return Value:
- Array format Unit Loadout Array
Syntax 2
- Syntax:
- getUnitLoadout [unit, fullMagazines]
- Parameters:
- unit: Object
- fullMagazines: Boolean - true to top up used magazines
- Return Value:
- Array format Unit Loadout Array
Syntax 3
- Syntax:
- getUnitLoadout name
- Parameters:
- name: String - CfgVehicles classname from which to extract the loadout
- Return Value:
- Array format Unit Loadout Array
Syntax 4
- Syntax:
- getUnitLoadout config
- Parameters:
- config: Config - loadout config class
- Return Value:
- Array format Unit Loadout Array
Examples
- Example 1:
- getUnitLoadout player;
- Example 2:
- Example 3:
- getUnitLoadout "B_Soldier_F";
- Example 4:
- Example 5:
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