OnNpcGiveSoldItem
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcGiveSoldItem( NPCVendingMachine instance, Item soldItem, BasePlayer buyer )
{
Puts( "OnNpcGiveSoldItem works!" );
}
Location
- NPCVendingMachine::GiveSoldItem(Item soldItem, BasePlayer buyer)
csharp
public override void GiveSoldItem(Item soldItem, BasePlayer buyer)
{
if (Interface.CallHook("OnNpcGiveSoldItem", this, soldItem, buyer) != null)
{
return;
}
base.GiveSoldItem(soldItem, buyer);
}