OnAnimalDungProduced
Usage
- No return behavior
Example Autogenerated
csharp
private void OnAnimalDungProduced( )
{
Puts( "OnAnimalDungProduced works!" );
}
csharp
private void OnAnimalDungProduced( RidableHorse instance, Item OxideGen_2 )
{
Puts( "OnAnimalDungProduced works!" );
}
Location
- RidableHorse::DoDung()
- RidableHorse::DoDung()
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);
}