Arma 3 Scripting

Command in Unit Inventory

assignItem

Also available as Markdown and JSON, or read the original wiki page.

Description

Assigns existing item from inventory (uniform, vest, backpack) to a correct slot. If the slot is occupied by another item, it gets replaced. See also linkItem.

Syntax

unit assignItem item

Parameters:

Returns: 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";

See also

unassignItem · addItem · removeItem · linkItem · unlinkItem · assignedItems · removeAllAssignedItems