Skip to content

OnXmasLootDistribute

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnXmasLootDistribute( XMasRefill instance )
{
    Puts( "OnXmasLootDistribute works!" );
    return null;
}

Location

  • XMasRefill::ServerInit()
csharp
//---
		return;
	}
	goodKids = ((BasePlayer.activePlayerList != null) ? new List<BasePlayer>(BasePlayer.activePlayerList) : new List<BasePlayer>());
	stockings = ((Stocking.stockings != null) ? new List<Stocking>(Stocking.stockings.Values) : new List<Stocking>());
	Invoke(RemoveMe, 60f);
	if (Interface.CallHook("OnXmasLootDistribute", this) == null)
	{
		InvokeRepeating(DistributeLoot, 3f, 0.02f);
		Invoke(SendBells, 0.5f);
	}
}

Released under the MIT License.