setUnitLoadout
Jump to navigation
Jump to search
Description
- Description:
- Creates a loadout from given inventory structure and applies it to a unit.
- Groups:
- Uncategorised
Syntax
- Syntax:
- unit setUnitLoadout [Loadout structure, Full magazines]
- Parameters:
- Unit: Object
- Loadout structure: Array
- Full magazines: Boolean - Partially emptied magazines will be refilled when the loadout is applied - Default: true (optional)
- Return Value:
- Nothing
Examples
- Example 1:
_loadout getUnitLoadout player_1 ; player_2 setUnitLoadout _loadout;//Copies loadout from player_1 and applies it to player_2
Additional Information
- See also:
- getUnitLoadout
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
[[Category:Introduced with arma3 dev version 1.59]][[ Category: arma3 dev: New Scripting Commands | SETUNITLOADOUT]][[ Category: arma3 dev: Scripting Commands | SETUNITLOADOUT]]