Skip to content

OnEventCollectablePickup

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnEventCollectablePickup( BasePlayer player, CollectableEasterEgg instance )
{
    Puts( "OnEventCollectablePickup works!" );
}

Location

  • CollectableEasterEgg::RPC_PickUp(BaseEntity/RPCMessage msg)
csharp
//---
	{
		if (!EggHuntEvent.serverEvent.IsEventActive())
		{
			return;
		}
		if (Interface.CallHook("OnEventCollectablePickup", msg.player, this) != null)
		{
			return;
		}
		EggHuntEvent.serverEvent.OnEggCollected(msg.player, this);
		int iAmount = 1;
//---

Released under the MIT License.