TransferItemFrom
Summary
public bool TransferItemFrom(IMyInventory sourceInventory, MyInventoryItem item, MyFixedPoint? amount)
Attempts to transfer item from one inventory to another.
Returns
True in case item was successfully transferred, false otherwise
Parameters
- IMyInventory sourceInventory
- MyInventoryItem item
- MyFixedPoint? amount
Summary
public bool TransferItemFrom(IMyInventory sourceInventory, int sourceItemIndex, int? targetItemIndex, bool? stackIfPossible, MyFixedPoint? amount)
Attempts to transfer item from one inventory to another.
Returns
True in case item was successfully transferred, false otherwise
Parameters
- IMyInventory sourceInventory
- int sourceItemIndex
- int? targetItemIndex
- bool? stackIfPossible
- MyFixedPoint? amount