Skip to main content

DoorLockChanged

Gets called when a door's lock state is changed.

Start a script section

!-- OnEvent DoorLockChanged
-- require *evDoor &evPrevLockReason &evLockReason

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: No
  • Event data: DoorLockChangedEventArgs

Injected variables

VariableTypeDescription
*evDoorreference to Door objectGets the current Door.
&evPrevLockReasoncollection of DoorLockReason enum valuesGets the Door old lock reason.
&evLockReasoncollection of DoorLockReason enum valuesGets the Door new lock reason.