Turret (16)

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.

OnInterferenceOthersUpdate

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateInterferenceOnOthers of Assembly-CSharp.dll.

Example
object OnInterferenceOthersUpdate(AutoTurret AutoTurret )
{
    Puts("OnInterferenceOthersUpdate was called!");
    return (object) null;
}

OnInterferenceUpdate

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateInterference of Assembly-CSharp.dll.

Example
object OnInterferenceUpdate(AutoTurret AutoTurret )
{
    Puts("OnInterferenceUpdate was called!");
    return (object) null;
}

OnNearbyTurretsScan

  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.UpdateNearbyTurrets of Assembly-CSharp.dll.

Example
void OnNearbyTurretsScan()
{
    Puts("OnNearbyTurretsScan was called!");
}
  • Called when a player attempts to authorize another player on a turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AssignToFriend of Assembly-CSharp.dll.

Example
object OnTurretAssign(AutoTurret AutoTurret , ulong UInt64 , BasePlayer BasePlayer )
{
    Puts("OnTurretAssign was called!");
    return (object) null;
}
  • Called when a player has been authorized on a turret by another player.

  • No return behaviour.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AssignToFriend of Assembly-CSharp.dll.

Example
void OnTurretAssigned(AutoTurret AutoTurret , ulong UInt64 , BasePlayer BasePlayer )
{
    Puts("OnTurretAssigned was called!");
}

This hook requires OnTurretAssign, which loads alongside OnTurretAssigned.

  • Called when a player attempts to authorize on a turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.AddSelfAuthorize of Assembly-CSharp.dll.

Example
object OnTurretAuthorize(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretAuthorize was called!");
    return (object) null;
}
  • Called when a player attempts to clear an autoturret's authorized list.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.ClearList of Assembly-CSharp.dll.

Example
object OnTurretClearList(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretClearList was called!");
    return (object) null;
}
  • Called when a player is deauthorized on an autoturret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.RemoveSelfAuthorize of Assembly-CSharp.dll.

Example
object OnTurretDeauthorize(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretDeauthorize was called!");
    return (object) null;
}
  • Returning a non-null value cancels default behavior.

  • This hook is Carbon-only compatible.

  • Patches AutoTurret.Server_SetID of Assembly-CSharp.dll.

Example
object OnTurretIdentifierSet(AutoTurret AutoTurret , BasePlayer BasePlayer , string String )
{
    Puts("OnTurretIdentifierSet was called!");
    return (object) null;
}
  • Called when the mode of an autoturrent is toggled.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SERVER_Peacekeeper of Assembly-CSharp.dll.

Example
object OnTurretModeToggle(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretModeToggle was called!");
    return (object) null;
}
  • Called when the mode of an autoturrent is toggled.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SERVER_AttackAll of Assembly-CSharp.dll.

Example
object OnTurretModeToggle(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretModeToggle was called!");
    return (object) null;
}
  • Called when a player tries to rotate an auto turret.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.FlipAim of Assembly-CSharp.dll.

Example
object OnTurretRotate(AutoTurret AutoTurret , BasePlayer BasePlayer )
{
    Puts("OnTurretRotate was called!");
    return (object) null;
}
  • Called when an autoturret is shut down.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.InitiateShutdown of Assembly-CSharp.dll.

Example
object OnTurretShutdown(AutoTurret AutoTurret )
{
    Puts("OnTurretShutdown was called!");
    return (object) null;
}
  • Called when an autoturret starts up.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.InitiateStartup of Assembly-CSharp.dll.

Example
object OnTurretStartup(AutoTurret AutoTurret )
{
    Puts("OnTurretStartup was called!");
    return (object) null;
}
  • Called when an autoturret attempts to target an entity.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SetTarget of Assembly-CSharp.dll.

Example
object OnTurretTarget(AutoTurret AutoTurret )
{
    Puts("OnTurretTarget was called!");
    return (object) null;
}
  • Called when an autoturret toggles powerstate (on/off).

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches AutoTurret.SetIsOnline of Assembly-CSharp.dll.

Example
object OnTurretToggle(AutoTurret AutoTurret )
{
    Puts("OnTurretToggle was called!");
    return (object) null;
}

Last updated