Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.ModAPI.Ingame.IMyInventory.TransferItemTo

Morten Aune Lyrstad edited this page Oct 10, 2019 · 21 revisions

IndexNamespace IndexIMyInventory

Summary

public bool TransferItemTo(IMyInventory dstInventory, MyInventoryItem item, MyFixedPoint? amount)

Attempts to transfer item from one inventory to another.

Returns

bool

True in case item was successfully transferred, false otherwise

Parameters

Summary

public bool TransferItemTo(IMyInventory dst, int sourceItemIndex, int? targetItemIndex, bool? stackIfPossible, MyFixedPoint? amount)

Attempts to transfer item from one inventory to another.

Returns

bool

True in case item was successfully transferred, false otherwise

Parameters

Clone this wiki locally