Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.Game.ModAPI.Ingame.IMyInventory.TransferItemTo

Morten Aune Lyrstad edited this page Apr 16, 2022 · 20 revisions

IndexNamespace IndexIMyInventory

Summary

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

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 = default, bool? stackIfPossible = default, MyFixedPoint? amount = default)

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