addItem

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  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:
0.50

Description

Description:
Creates new item and tries to add it into inventory. Inventory must have enough space to accomodate new item or command will fail.The item can also be a weapon or a magazine.

Syntax

Syntax:
unit addItem item
Parameters:
unit: Object
item: String
Return Value:
Nothing

Examples

Example 1:
bluforUnit addItem "NVGoggles"; bluforUnit assignItem "NVGoggles"; opforUnit addItem "NVGoggles_OPFOR"; opforUnit assignItem "NVGoggles_OPFOR"; independentUnit addItem "NVGoggles_INDEP"; independentUnit assignItem "NVGoggles_INDEP";

Additional Information

Multiplayer:
-
See also:
removeItemassignItemunassignItemassignedItemslinkItemunlinkItemremoveAllAssignedItems addItemToUniformaddItemToVestaddItemToBackpack

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

Notes

Bottom Section