跳到主要内容
版本:Next

Dropped items

Items lying in the game world — dropped by players or by the game itself — are represented as ReadyDroppedItem entities, reached through SDK.Sync.

IEnumerable<ReadyDroppedItem> items = SDK.Sync.AllDroppedItems;

foreach (var item in items)
{
FormId formId = item.FormId;
int stackSize = item.StackSize;
}

Spawning items

SDK.Sync.SpawnDroppedItem(itemId, stackSize: 5, position);