Events & Interface
This page describes how to hook into Action Camera Swap from other mods.
→ Events
There are no events at this time.
→ Interface
Use it like this:
local I = require("openmw.interfaces")
local ui = require("openmw.ui")
local function checkAuto()
if I.ActionCameraSwap then
local auto = I.ActionCameraSwap.Auto()
local msg = "Camera auto swapping is disabled!"
if auto then
msg = "Camera auto swapping is enabled!"
end
ui.ShowMessage(msg)
end
end
→ Auto()
Returns a boolean to indicate whether or not auto switching of the camera is enabled.