Skip to content

OnXmasLootDistribute

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnXmasLootDistribute( XMasRefill instance )
{
    Puts( "OnXmasLootDistribute works!" );
}

Location

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

Released under the MIT License.