OnGiveSoldItem
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnGiveSoldItem( VendingMachine instance, Item soldItem, BasePlayer buyer )
{
Puts( "OnGiveSoldItem works!" );
}
Location
- VendingMachine::GiveSoldItem(Item soldItem, BasePlayer buyer)
csharp
public virtual void GiveSoldItem(Item soldItem, BasePlayer buyer)
{
if (Interface.CallHook("OnGiveSoldItem", this, soldItem, buyer) != null)
{
return;
}
while (soldItem.amount > soldItem.MaxStackable())
{
//---