Skip to content

OnRecyclerToggle

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnRecyclerToggle( Recycler instance, BasePlayer player )
{
    Puts( "OnRecyclerToggle works!" );
}

Location

  • Recycler::SVSwitch(BaseEntity/RPCMessage msg)
csharp
//---
	}
	if (msg.player == null)
	{
		return;
	}
	if (Interface.CallHook("OnRecyclerToggle", this, msg.player) != null)
	{
		return;
	}
	if (!flag && this.onlyOneUser && msg.player.inventory.loot.entitySource != this)
	{
//---

Released under the MIT License.