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", this.item);
Facepunch.Rust.Analytics.Azure.OnItemDespawn(this, this.item, (int)this.DropReason, this.DroppedBy);
if (this.item != null)
{
BuriedItems.Instance.Register(this.item, base.transform.position);
}
//---