TransferItemFrom
Summary
public bool TransferItemFrom(IMyInventory sourceInventory, int sourceItemIndex, int? targetItemIndex, bool? stackIfPossible, MyFixedPoint? amount, bool checkConnection)
Transfer item from one inventory to another
Returns
True if checkConnection is false, or inventories are connected with correct conveyor
Parameters
- IMyInventory sourceInventory
- int sourceItemIndex
- int? targetItemIndex
- bool? stackIfPossible
- MyFixedPoint? amount
- bool checkConnection
Summary
public bool TransferItemFrom(IMyInventory sourceInventory, IMyInventoryItem item, MyFixedPoint amount)
Transfer item from one inventory to another
Returns
True if two inventories are connected
Parameters
- IMyInventory sourceInventory
- IMyInventoryItem item
- MyFixedPoint amount
Remarks
Items could be transferred only through conveyors