Skip to content

OnXmasStockingFill

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnXmasStockingFill( Stocking instance )
{
    Puts( "OnXmasStockingFill works!" );
}

Location

  • Stocking::SpawnLoot()
csharp
//---
		Debug.Log("CONTACT DEVELOPERS! Stocking::PopulateLoot has null inventory!!! " + base.name);
		return;
	}
	if (this.IsEmpty())
	{
		if (Interface.CallHook("OnXmasStockingFill", this) != null)
		{
			return;
		}
		base.SpawnLoot();
		base.SetFlag(BaseEntity.Flags.On, true, false, true);
//---

Released under the MIT License.