1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 15:41:32 +00:00

Check if controls are on for Use action

This commit is contained in:
uramer 2024-01-02 13:38:55 +01:00
parent 29c20cdb41
commit 5f2cbf810d

View file

@ -195,7 +195,7 @@ end))
local startUse = false local startUse = false
input.registerActionHandler('Use', async:callback(function(value) input.registerActionHandler('Use', async:callback(function(value)
if value then startUse = true end if value and controlsAllowed() then startUse = true end
end)) end))
local function processAttacking() local function processAttacking()
if Actor.stance(self) == Actor.STANCE.Spell then if Actor.stance(self) == Actor.STANCE.Spell then