Skip to main content

InteractingDoor

Gets called when the player is interacting with a door.

Start a script section

!-- OnEvent InteractingDoor
-- require @evPlayer *evDoor $evCanOpen $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is interacting with the door.
*evDoorreference to Door objectGets the door that is being interacted with.
$evCanOpenbool valueGets whether player can open the door.
$evIsAllowedbool valueWhether the event is allowed to run.