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
//---
	}
	if (di.DropReason == DroppedItem.DropReasonEnum.Player)
	{
		this.DropReason = DroppedItem.DropReasonEnum.Player;
	}
	Interface.CallHook("OnDroppedItemCombined", this);
	di.item.MigrateItemOwnership(this.item, di.item.amount);
	di.DestroyItem();
	di.Kill(BaseNetworkable.DestroyMode.None);
	int arg_29E_0 = this.item.info.GetWorldModelIndex(this.item.amount);
	this.item.amount = num2;
//---

Released under the MIT License.