Skip to content
DreamWeave Mod Template
api

Events

Events Candlelight sends and accepts.

CandlelightChanged { light: GameObject, brightness: number }

Sent to the player script whenever Candlelight changes a light’s brightness. brightness is the multiplier applied to the record’s radius and color, from 0 to 1.

local core = require 'openmw.core'

return {
  eventHandlers = {
    CandlelightChanged = function(data)
      if data.brightness == 0 then
        print(data.light.recordId .. ' went out')
      end
    end,
  },
}
CandlelightPause { seconds: number }

Accepted by the global script. Freezes every light for seconds of game time, for cutscenes that want the lighting to hold still.