Skip to content

OnContainerDropItems ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private object OnContainerDropItems( ItemContainer container )
{
    Puts( "OnContainerDropItems works!" );
    return null;
}

Location ​

  • DropUtil::DropItems(ItemContainer container, UnityEngine.Vector3 position, bool scatter)
csharp
public static void DropItems(ItemContainer container, Vector3 position, bool scatter = true)
{
	if (!Server.dropitems || container == null || container.itemList == null || Interface.CallHook("OnContainerDropItems", container) != null)
	{
		return;
	}
	float num = (scatter ? 0.25f : 0f);
	float y = (scatter ? 1f : 0f);
//---

Released under the MIT License.