Skip to content

OnDroppedItemCombined

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnDroppedItemCombined( DroppedItem instance )
{
    Puts( "OnDroppedItemCombined works!" );
}

Location

  • DroppedItem::OnDroppedOn(DroppedItem di)
csharp
//---
		this.DropReason = DroppedItem.DropReasonEnum.Player;
	}
	di.item.MigrateItemOwnership(this.item, di.item.amount);
	di.DestroyItem();
	di.Kill(BaseNetworkable.DestroyMode.None);
	Interface.CallHook("OnDroppedItemCombined", this);
	int arg_28A_0 = this.item.info.GetWorldModelIndex(this.item.amount);
	this.item.amount = num2;
	this.item.MarkDirty();
	if (this.GetDespawnDuration() < float.PositiveInfinity)
	{
//---

Released under the MIT License.