Skip to content

OnLootSpawn

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnLootSpawn( LootContainer instance )
{
    Puts( "OnLootSpawn works!" );
}

Location

  • LootContainer::SpawnLoot()
csharp
//---
		Debug.Log("CONTACT DEVELOPERS! LootContainer::PopulateLoot has null inventory!!!");
		return;
	}
	base.inventory.Clear();
	ItemManager.DoRemoves();
	if (Interface.CallHook("OnLootSpawn", this) != null)
	{
		return;
	}
	this.PopulateLoot();
	if (this.shouldRefreshContents)
//---

Released under the MIT License.