Skip to content

OnAnimalDungProduced

Saving the created Item to a variable for its subsequent transfer in a hook.

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnAnimalDungProduced(  )
{
    Puts( "OnAnimalDungProduced works!" );
}
csharp
private void OnAnimalDungProduced( BaseRidableAnimal instance, Item V_1 )
{
    Puts( "OnAnimalDungProduced works!" );
}
csharp
private void OnAnimalDungProduced(  )
{
    Puts( "OnAnimalDungProduced works!" );
}
csharp
private void OnAnimalDungProduced( RidableHorse2 instance, Item OxideGen_2 )
{
    Puts( "OnAnimalDungProduced works!" );
}

Location

  • BaseRidableAnimal::DoDung()
  • BaseRidableAnimal::DoDung()
  • RidableHorse2::DoDung()
  • RidableHorse2::DoDung()
csharp
//---
	{
		return;
	}
	Item OxideGen_ = ItemManager.Create(this.Dung, 1, 0uL, true);
	OxideGen_.Drop(base.transform.position + -base.transform.forward + Vector3.up * 1.1f + UnityEngine.Random.insideUnitSphere * 0.1f, -base.transform.forward, default(Quaternion));
	Interface.CallHook("OnAnimalDungProduced", this, OxideGen_);
}
csharp
//---
	Vector3 vVelocity = new Vector3(UnityEngine.Random.Range(-0.5f, 0.5f), UnityEngine.Random.Range(-1f, -3f), UnityEngine.Random.Range(-0.5f, 0.5f));
	Item OxideGen_2 = ItemManager.Create(this.dungItem, 1, 0uL, true);
	Item expr_99 = OxideGen_2;
	expr_99.SetItemOwnership(this.currentBreed.breedName.english, ItemOwnershipPhrases.Pooped);
	expr_99.Drop(this.dungSpawnPoint.position + UnityEngine.Random.insideUnitSphere * 0.1f, vVelocity, rotation);
	Interface.CallHook("OnAnimalDungProduced", this, OxideGen_2);
}

Released under the MIT License.