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);
base.DestroyItem();
base.Kill(BaseNetworkable.DestroyMode.None);
}