OnItemSplit
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnItemSplit( Item instance, int split_Amount )
{
Puts( "OnItemSplit works!" );
}
Location
- Item::SplitItem(int split_Amount)
csharp
//---
}
if (split_Amount >= this.amount)
{
return null;
}
object returnvar = Interface.CallHook("OnItemSplit", this, split_Amount);
if (returnvar is Item)
{
return (Item)returnvar;
}
this.amount -= split_Amount;
//---