Skip to main content

InteractingElevator

Gets called when the player is interacting with an elevator.

Start a script section

!-- OnEvent InteractingElevator
-- require @evPlayer *evElevator *evPanel $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerInteractingElevatorEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is interacting with the elevator.
*evElevatorreference to Elevator objectGets the elevator.
*evPanelreference to ElevatorPanel objectGets the elevator panel.
$evIsAllowedbool valueWhether the event is allowed to run.