Elevator (6)

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 ElevatorLift.CanMove of Assembly-CSharp.dll.

Example
object CanElevatorLiftMove(ElevatorLift self)
{
    Puts("CanElevatorLiftMove was called!");
    return (bool) null;
}
  • Called when a player presses a button on an elevator lift.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ElevatorLift.Server_RaiseLowerFloor of Assembly-CSharp.dll.

Example
object OnElevatorButtonPress()
{
    Puts("OnElevatorButtonPress was called!");
    return (object) null;
}
  • Called when an elevator lift is called to a specific floor by electricity.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches Elevator.b__29_0 of Assembly-CSharp.dll.

Example
object OnElevatorCall(Elevator self, Elevator elevatorEnt)
{
    Puts("OnElevatorCall was called!");
    return (object) null;
}
  • Called right before an elevator starts moving to the target floor.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches Elevator.RequestMoveLiftTo of Assembly-CSharp.dll.

Example
object OnElevatorMove()
{
    Puts("OnElevatorMove was called!");
    return (object) null;
}
  • Called when a player calls a lift or procedural lift.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches Lift.RPC_UseLift of Assembly-CSharp.dll.

Example
object OnLiftUse(Lift self, BasePlayer player)
{
    Puts("OnLiftUse was called!");
    return (object) null;
}
  • Called when a player calls a lift or procedural lift.

  • Returning a non-null value cancels default behavior.

  • This hook is compatible within Carbon and Oxide.

  • Patches ProceduralLift.RPC_UseLift of Assembly-CSharp.dll.

Example
object OnLiftUse(ProceduralLift self, BasePlayer player)
{
    Puts("OnLiftUse was called!");
    return (object) null;
}

Last updated