# Move Inventory Item
Grammar — Move inventory item item to slot slot in container container
Flags —Native
|Action
Moves an inventory to the specified slot in the specified container.
# Arguments
unit
— Itemint
— Containerint
— Slot
Returns — void
native void UnitInventoryMove(
unit inItem,
int inContainer,
int inSlot,
);
# Related
Category: Unit / Items
- [F] —
void
— Create Inventory Item — ( UnitInventoryCreate ) - [F] —
void
— Add Item To Inventory — ( UnitInventoryAdd ) - [F] —
unit
— Last Created Inventory Item — ( UnitInventoryLastCreated ) - [F] —
unit
— Inventory Item Carried — ( UnitInventoryItem ) - [F] —
unit
— Inventory Item Carrier — ( UnitInventoryUnit ) - [F] —
int
— Inventory Item Container — ( UnitInventoryContainer ) - [F] —
int
— Inventory Item Slot — ( UnitInventorySlot ) - [F] —
int
— Inventory Item Index — ( UnitInventoryIndex ) - [F] —
int
— Inventory Item Count — ( UnitInventoryCount ) - [F] —
unitgroup
— Inventory Items Carried — ( UnitInventoryGroup ) - [F] —
void
— Open Inventory Container — ( UnitInventoryContainerOpen ) - [F] —
void
— Move Inventory Item — ( UnitInventoryMove ) - [F] —
void
— Remove Inventory Item — ( UnitInventoryRemove ) - [F] —
void
— Unit Acquires Powerup — ( TriggerAddEventUnitPowerup ) - [F] —
unit
— Triggering Powerup — ( EventUnitPowerupUnit ) - [F] —
void
— Unit Manipulates Inventory — ( TriggerAddEventUnitInventoryChange ) - [F] —
int
[ preset::InventoryManipulation ] — Triggering Inventory Manipulation — ( EventUnitInventoryChange ) - [F] —
unit
— Triggering Inventory Item — ( EventUnitInventoryItem ) - [F] —
int
— Triggering Inventory Item Container — ( EventUnitInventoryItemContainer ) - [F] —
int
— Triggering Inventory Item Slot — ( EventUnitInventoryItemSlot ) - [F] —
point
— Triggering Inventory Item Target Point — ( EventUnitInventoryItemTargetPoint ) - [F] —
unit
— Triggering Inventory Item Target Unit — ( EventUnitInventoryItemTargetUnit )
# Examples
# mods/warcoop/warclassicsystem.sc2mod
// L473
UnitInventoryMove(lv_itemCopy, lv_container, lv_slot)