Skip to content

OnInventoryItemFind

Usage

  • Return a Item value to override default behavior

Example Autogenerated

csharp
private Item? OnInventoryItemFind( PlayerInventory instance, int id )
{
    Puts( "OnInventoryItemFind works!" );
    return null;
}

Location

  • PlayerInventory::FindItemByItemID(int id)
csharp
public Item FindItemByItemID(int id)
{
	object obj = Interface.CallHook("OnInventoryItemFind", this, id);
	if (obj is Item)
	{
		return (Item)obj;
	}
	if (containerMain != null)
//---

Released under the MIT License.