1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00
openmw/files/data/scripts/omw/worldeventhandlers.lua

17 lines
600 B
Lua

local world = require('openmw.world')
return {
eventHandlers = {
Pause = function(tag) world.pause(tag) end,
Unpause = function(tag) world.unpause(tag) end,
SetGameTimeScale = function(scale) world.setGameTimeScale(scale) end,
SetSimulationTimeScale = function(scale) world.setSimulationTimeScale(scale) end,
SpawnVfx = function(data)
if data.options then
world.vfx.spawn(data.model, data.position, data.options)
else
world.vfx.spawn(data.model, data.position)
end
end,
},
}