VRage.Game.ModAPI.Ingame.IMyInventory.TransferItemFrom - bimbam2103/space_engineers GitHub Wiki
← Index ← Namespace Index ← IMyInventory
public bool TransferItemFrom(IMyInventory sourceInventory, MyInventoryItem item, MyFixedPoint? amount = default)
Attempts to transfer item from one inventory to another.
True in case item was successfully transferred, false otherwise
- IMyInventory sourceInventory
- MyInventoryItem item
- MyFixedPoint? amount
public bool TransferItemFrom(IMyInventory sourceInventory, int sourceItemIndex, int? targetItemIndex = default, bool? stackIfPossible = default, MyFixedPoint? amount = default)
Attempts to transfer item from one inventory to another.
True in case item was successfully transferred, false otherwise
- IMyInventory sourceInventory
- int sourceItemIndex
- int? targetItemIndex
- bool? stackIfPossible
- MyFixedPoint? amount