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
//---
	{
		if (timeAlive - warmupTime > durationSeconds - warnTime)
		{
			SetFlag(Flags.Reserved1, b: true);
		}
		if (timeAlive - warmupTime > durationSeconds && !IsInvoking(Cooldown) && Interface.CallHook("OnHuntEventEnd", this) == null)
		{
			SetFlag(Flags.Reserved2, b: true);
			CleanupEggs();
			PrintWinnersAndAward();
			Invoke(Cooldown, 10f);
//---

Released under the MIT License.