Arma 3 Scripting

assignItem

  • Global argument
  • Global effect
  • Arma 3 v0.50

Command · Markdown · JSON · 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