Lua script code doesn't work on Battlefield1

39 Views Asked by At

Trying to use this simple recoil reducer lua script code. But in game, cursor doesn't move in x axis. It kinda stucks in y axis.

EnablePrimaryMouseButtonEvents(true);
 
function OnEvent(event, arg)
    if IsKeyLockOn("numlock" )then
        if IsMouseButtonPressed(3)then
            repeat  
                if IsMouseButtonPressed(1) then
                    repeat
                        MoveMouseRelative(0,1)
                        Sleep(33)
                    until not IsMouseButtonPressed(1)
                end             
            until not IsMouseButtonPressed(3)
        end     
    end
end

I tried to use older versions of Logitech G Hub. But same result. Currently I am using 2021.11.1775 version of Logitech G Hub.

Here is a video: https://youtu.be/ZJixURBzsyA

0

There are 0 best solutions below