Skip to content

OnHuntEventEnd

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnHuntEventEnd( EggHuntEvent instance )
{
    Puts( "OnHuntEventEnd works!" );
    return null;
}

Location

  • EggHuntEvent::Update()
csharp
//---
	using FlagsUpdateScope flagsUpdateScope = StartSetFlags(FlagsUpdateMode.SendNetworkUpdate);
	if (timeAlive - warmupTime > durationSeconds - warnTime)
	{
		flagsUpdateScope.Set(Flags.Reserved1, b: true);
	}
	if (timeAlive - warmupTime > durationSeconds && !IsInvoking(Cooldown) && Interface.CallHook("OnHuntEventEnd", this) == null)
	{
		flagsUpdateScope.Set(Flags.Reserved2, b: true);
		CleanupEggs();
		PrintWinnersAndAward();
		Invoke(Cooldown, 10f);
//---

Released under the MIT License.