Skip to content

OnCollectiblePickup

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnCollectiblePickup( CollectibleEntity instance, BasePlayer reciever, bool eat )
{
    Puts( "OnCollectiblePickup works!" );
}

Location

  • CollectibleEntity::DoPickup(BasePlayer reciever, bool eat)
csharp
//---
{
	if (this.itemList == null)
	{
		return;
	}
	if (Interface.CallHook("OnCollectiblePickup", this, reciever, eat) != null)
	{
		return;
	}
	ItemAmount[] array = this.itemList;
	for (int i = 0; i < array.Length; i++)
//---

Released under the MIT License.