Resources (2)

All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.

  • Called right before the growable entity is updated.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches GrowableEntity.RunUpdate.

Example
void OnGrowableUpdate(GrowableEntity growable)
{
    Puts("OnGrowableUpdate was called!");
}
  • Called when a dung is spawned at the backside of the horse.

  • Override the return with an item to replace the Dung with any other item that's being dropped.

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches BaseRidableAnimal.DoDung.

Example
object OnHorseDung(BaseRidableAnimal horse)
{
    Puts("OnHorseDung was called!");
    return (Item) null;
}

Last updated