OnCollectiblePickedup
Usage
- No return behavior
Example Autogenerated
csharp
private void OnCollectiblePickedup( CollectibleEntity instance, BasePlayer reciever, Item component )
{
Puts( "OnCollectiblePickedup works!" );
}
Location
- CollectibleEntity::DoPickup(BasePlayer reciever, bool eat)
csharp
//---
}
}
if (reciever)
{
Facepunch.Rust.Analytics.Azure.OnGatherItem(item.info.shortname, item.amount, this, reciever, null);
Interface.CallHook("OnCollectiblePickedup", this, reciever, item);
reciever.GiveItem(item, BaseEntity.GiveItemReason.ResourceHarvested);
}
else
{
item.Drop(base.transform.position + Vector3.up * 0.5f, Vector3.up, default(Quaternion));
//---