Files
ashlar/files/data/scripts/omw/worldeventhandlers.lua

14 lines
614 B
Lua

local world = require('openmw.world')
return {
eventHandlers = {
Pause = function(tag) world.pause(tag) end,
RemoveVfx = function(vfxId) world.vfx.remove(vfxId) end,
SetGameTimeScale = function(scale) world.setGameTimeScale(scale) end,
SetSaveState = function(objects) for k, v in pairs(objects) do k:setSaveState(v) end end,
SetSimulationTimeScale = function(scale) world.setSimulationTimeScale(scale) end,
SpawnVfx = function(data) world.vfx.spawn(data.model, data.position, data.options) end,
Unpause = function(tag) world.unpause(tag) end,
},
}