setUnitLoadout: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (bug note removed since there is dedicated ticket) |
No edit summary |
||
Line 29: | Line 29: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on July 20, 2016 - 22:04 (UTC)</dd> | |||
<dt class="note">[[User:Nomisum|Nomisum]]</dt> | |||
<dd class="note"> | |||
Command has only local effect. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 23:04, 20 July 2016
Description
- Description:
- Creates a loadout from given inventory structure and applies it to a unit.
- Groups:
- Uncategorised
Syntax
- Syntax:
- unit setUnitLoadout [loadout, rearm]
- Parameters:
- unit: Object
- loadout: Array - loadout array from getUnitLoadout
- rearm (Optional): Boolean - Partially emptied magazines will be refilled when the loadout is applied - Default: false
- 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
Bottom Section
Notes
Bottom Section
- Posted on July 20, 2016 - 22:04 (UTC)
- Nomisum
- Command has only local effect.