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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
451 B
Lua
Raw Normal View History

2023-09-03 00:45:18 +00:00
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) world.vfx.spawn(data.model, data.position, data.options) end,
2023-09-03 00:45:18 +00:00
},
}