World (3)

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.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches TerrainGenerator.CreateTerrain of Assembly-CSharp.dll.

Example
void OnTerrainCreate(TerrainGenerator self)
{
    Puts("OnTerrainCreate was called!");
}
  • Called after the terrain generation process has completed.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches TerrainMeta.PostSetupComponents of Assembly-CSharp.dll.

Example
void OnTerrainInitialized()
{
    Puts("OnTerrainInitialized was called!");
}
  • Called when a world prefab was spawned.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches World.Spawn of Assembly-CSharp.dll.

Example
void OnWorldPrefabSpawned(UnityEngine.GameObject local0, string category)
{
    Puts("OnWorldPrefabSpawned was called!");
}

Last updated