Skip to main content

BlastDoorChanging

Gets called when a blast door changes state.

Start a script section

!-- OnEvent BlastDoorChanging
-- require *evBlastDoor $evNewState $evIsAllowed

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: Yes
  • Event data: BlastDoorChangingEventArgs

Injected variables

VariableTypeDescription
*evBlastDoorreference to BlastDoor objectGets the current Blast Door.
$evNewStatebool valueGets or sets the BlastDoor new state.
$evIsAllowedbool valueWhether the event is allowed to run.