OnConveyorFiltersChange
Usage
- Return a non-null value or bool to override default behavior
Example Autogenerated
csharp
private void OnConveyorFiltersChange( IndustrialConveyor instance, BasePlayer player, ItemFilterList itemFilterList )
{
Puts( "OnConveyorFiltersChange works!" );
}
Location
- IndustrialConveyor::RPC_ChangeFilters(BaseEntity/RPCMessage msg)
csharp
//---
ProtoBuf.IndustrialConveyor.ItemFilterList itemFilterList = ProtoBuf.IndustrialConveyor.ItemFilterList.Deserialize(msg.read);
if (itemFilterList.filters == null)
{
return;
}
if (Interface.CallHook("OnConveyorFiltersChange", this, msg.player, itemFilterList) != null)
{
return;
}
int num = Mathf.Min(itemFilterList.filters.Count, 60);
int num2 = 0;
//---