Skip to content

OnAnimalDungProduce

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnAnimalDungProduce( RidableHorse instance )
{
    Puts( "OnAnimalDungProduce works!" );
}

Location

  • RidableHorse::DoDung()
csharp
private void DoDung()
{
	this.dungProduction -= 1f;
	if (Interface.CallHook("OnAnimalDungProduce", this) != null)
	{
		return;
	}
	Quaternion rotation = Quaternion.Euler(UnityEngine.Random.Range(-180f, 180f), UnityEngine.Random.Range(-180f, 180f), UnityEngine.Random.Range(-180f, 180f));
	Vector3 vVelocity = new Vector3(UnityEngine.Random.Range(-0.5f, 0.5f), UnityEngine.Random.Range(-1f, -3f), UnityEngine.Random.Range(-0.5f, 0.5f));
//---

Released under the MIT License.