Skip to content

OnLootItem

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnLootItem( PlayerLoot instance, Item item )
{
    Puts( "OnLootItem works!" );
}

Location

  • PlayerLoot::StartLootingItem(Item item)
csharp
//---
			_markDirtyCallback = MarkDirty;
		}
		item.contents.onDirty += _markDirtyCallback;
		itemSource = item;
		entitySource = item.GetWorldEntity();
		Interface.CallHook("OnLootItem", GetComponent<BasePlayer>(), item);
		MarkDirty();
	}
}

Released under the MIT License.