setUnitLoadout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 35: Line 35:
<dt class="note">[[User:Ozdeadmeat|Ozdeadmeat]]</dt>
<dt class="note">[[User:Ozdeadmeat|Ozdeadmeat]]</dt>
<dd class="note">
<dd class="note">
Items in Uniform, Vest and Backpack are not transferred to server during disconnect in multiplayer, all other items appear to be transferred correctly.
When this command is executed on a character that is not local to the a server in multiplayer the Items in Uniform, Vest and Backpack are not transferred to server during disconnect in multiplayer, all other items appear to be transferred correctly.  
https://feedback.bistudio.com/T117213
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 07:05, 5 June 2016

Hover & click on the images for description

Description

Description:
Creates a loadout from given inventory structure and applies it to a unit.
This command is not final and might be changed in a near future.
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 June 4, 2016 - 01:42 (UTC)
Ozdeadmeat
When this command is executed on a character that is not local to the a server in multiplayer the Items in Uniform, Vest and Backpack are not transferred to server during disconnect in multiplayer, all other items appear to be transferred correctly. https://feedback.bistudio.com/T117213