OnTerrainInitialized
OxideCarbonWorldCalled when a terrAIn is initialized.
void OnTerrainInitialized()Works — the game method in this build is the one the hook was written for.
Parameters
No parameters.
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnTerrainInitialized()
{
Puts("OnTerrainInitialized");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void TerrainMeta.PostSetupComponents()
Passes: —
WorksReturnBehavior: ContinueArgumentBehavior: NoneAssembly-CSharp.dll
Where it is called (this branch's game code)
public void PostSetupComponents()
{
TerrainExtension[] components = GetComponents<TerrainExtension>();
for (int i = 0; i < components.Length; i++)
{
components[i].PostSetup();
}
Interface.CallHook("OnTerrainInitialized");
}Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.