# Move Inventory Item

Grammar — Move inventory item item to slot slot in container container
FlagsNative | Action

Moves an inventory to the specified slot in the specified container.

# Arguments

  • unit — Item
  • int — Container
  • int — Slot

Returns — void

native void UnitInventoryMove(
	unit inItem,
	int inContainer,
	int inSlot,
);

Category: Unit / Items

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:473

        UnitInventoryCreate(lv_target, UnitGetType(lv_item));
        lv_itemCopy = UnitInventoryLastCreated();
        UnitInventoryMove(lv_itemCopy, lv_container, lv_slot);
        ItemSetChargeCount(lv_itemCopy, lv_itItemStack);
    }