OnInventoryItemsCount
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnInventoryItemsCount( PlayerInventory instance, int itemid )
{
Puts( "OnInventoryItemsCount works!" );
}
Location
- PlayerInventory::GetAmount(int itemid)
csharp
//---
{
if (itemid == 0)
{
return 0;
}
object returnvar = Interface.CallHook("OnInventoryItemsCount", this, itemid);
if (returnvar is int)
{
return (int)returnvar;
}
int num = 0;
//---