Skip to content

OnItemDespawn

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnItemDespawn( Item item )
{
    Puts( "OnItemDespawn works!" );
}

Location

  • DroppedItem::IdleDestroy()
csharp
public void IdleDestroy()
{
	Interface.CallHook("OnItemDespawn", item);
	Facepunch.Rust.Analytics.Azure.OnItemDespawn(this, item, (int)DropReason, DroppedBy);
	if (item != null)
	{
		BuriedItems.Instance.Register(item, base.transform.position);
	}
//---

Released under the MIT License.