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 TerrainGenerator )
{
    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.SpawnPrefab of Assembly-CSharp.dll.

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

Last updated