Skip to content

OnItemRemove

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnItemRemove( Item instance )
{
    Puts( "OnItemRemove works!" );
}

Location

  • Item::Remove(float fTime)
csharp
//---
{
	if (this.removeTime > 0f)
	{
		return;
	}
	if (Interface.CallHook("OnItemRemove", this) != null)
	{
		return;
	}
	if (this.isServer)
	{
//---

Released under the MIT License.