OnMixingTableToggle
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnMixingTableToggle( MixingTable instance, BasePlayer player )
{
Puts( "OnMixingTableToggle works!" );
}
Location
- MixingTable::SVSwitch(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.MaxDistance(3f)]
private void SVSwitch(BaseEntity.RPCMessage msg)
{
if (Interface.CallHook("OnMixingTableToggle", this, msg.player) != null)
{
return;
}
bool flag = msg.read.Bit();
if (flag == base.IsOn())
//---