Skip to content

OnInventoryItemsTake

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnInventoryItemsTake( PlayerInventory instance, List`1 collect, int itemid, int amount )
{
    Puts( "OnInventoryItemsTake works!" );
}

Location

  • PlayerInventory::Take(System.Collections.Generic.List`1<Item> collect, int itemid, int amount)
csharp
public int Take(List<Item> collect, int itemid, int amount)
{
	object returnvar = Interface.CallHook("OnInventoryItemsTake", this, collect, itemid, amount);
	if (returnvar is int)
	{
		return (int)returnvar;
	}
	int num = 0;
//---

Released under the MIT License.