Skip to content

OnHuntEventEnd

Usage

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

Example Autogenerated

csharp
private void OnHuntEventEnd( EggHuntEvent instance )
{
    Puts( "OnHuntEventEnd works!" );
}

Location

  • EggHuntEvent::Update()
csharp
//---
		{
			base.SetFlag(BaseEntity.Flags.Reserved1, true, false, true);
		}
		if (this.timeAlive - this.warmupTime > EggHuntEvent.durationSeconds && !base.IsInvoking(new Action(this.Cooldown)))
		{
			if (Interface.CallHook("OnHuntEventEnd", this) != null)
			{
				return;
			}
			base.SetFlag(BaseEntity.Flags.Reserved2, true, false, true);
			this.CleanupEggs();
//---

Released under the MIT License.