Skip to main content

RoomLightChanged

Gets called when a room's light is changed.

Start a script section

!-- OnEvent RoomLightChanged
-- require *evRoom $evNewState

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

Injected variables

VariableTypeDescription
*evRoomreference to Room objectGets the current room.
$evNewStatebool valueGets the Room new light state.