Skip to content

OnAnimalDungProduced

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnAnimalDungProduced(  )
{
    Puts( "OnAnimalDungProduced works!" );
}
csharp
private void OnAnimalDungProduced( RidableHorse instance, Item item )
{
    Puts( "OnAnimalDungProduced works!" );
}

Location

  • RidableHorse::DoDung()
  • RidableHorse::DoDung()
csharp
//---
		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));
		Item item = ItemManager.Create(dungItem, 1, 0uL);
		item.SetItemOwnership(currentBreed.breedName.english, ItemOwnershipPhrases.Pooped);
		item.Drop(dungSpawnPoint.position + UnityEngine.Random.insideUnitSphere * 0.1f, vVelocity, rotation);
		Interface.CallHook("OnAnimalDungProduced", this, item);
	}
}
csharp
//---
		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));
		Item item = ItemManager.Create(dungItem, 1, 0uL);
		item.SetItemOwnership(currentBreed.breedName.english, ItemOwnershipPhrases.Pooped);
		item.Drop(dungSpawnPoint.position + UnityEngine.Random.insideUnitSphere * 0.1f, vVelocity, rotation);
		Interface.CallHook("OnAnimalDungProduced", this, item);
	}
}

Released under the MIT License.