setUnitLoadout

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.58
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.58

Description

Description:
Creates a loadout from given inventory structure and applies it to a unit.
warning.png This command is not final and might be changed in a near future.

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

Multiplayer:
-
See also:
getUnitLoadout

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section

Notes

Bottom Section