Skip to main content

Merchant.GetEquippedItem

Declaration#

public virtual GDTKItem GetEquippedItem(string slotId)

Parameters#

NameDescription
slotIdId to get

Description#

Get the item currently equipped to a Equip Slot

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        GDTKItem result = target.GetEquippedItem(InventoryDatabase.instance.equipSlots[0].info.id);    }
}