OnItemRecycle
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnItemRecycle( Item slot, Recycler instance )
{
Puts( "OnItemRecycle works!" );
return null;
}csharp
private void OnItemRecycle( )
{
Puts( "OnItemRecycle works!" );
}Location
- Recycler::RecycleThink()
- Recycler::RecycleThink()
csharp
//---
if (!CanBeRecycled(slot))
{
num2++;
continue;
}
if (Interface.CallHook("OnItemRecycle", slot, this) != null)
{
if (!HasRecyclable())
{
StopRecycling();
}
//---csharp
//---
if (!CanBeRecycled(slot))
{
num2++;
continue;
}
if (Interface.CallHook("OnItemRecycle", slot, this) != null)
{
if (!HasRecyclable())
{
StopRecycling();
}
//---