Im trying to put the following 2 scripts together so that they can run at the same exact time.
function OnEvent(event, arg)
if EnableRCS ~= false then
if IsMouseButtonPressed(3) then -- Only check for right mouse button press
repeat
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(0, RecoilControlStrength)
Sleep(DelayRate)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
end
and
if event == "MOUSE_BUTTON_PRESSED" and arg == 8 then
PressKeySequenceA()
end
I've tried combining the script like this:
function OnEvent(event, arg)
if EnableRCS ~= false then
if event == "MOUSE_BUTTON_PRESSED" and arg == 8 then
PressKeySequenceA()
end
if IsMouseButtonPressed(3) then
repeat
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(0, RecoilControlStrength)
Sleep(DelayRate)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end
end
But it doesn't result in the scripts being executed simultaneously
Right now the scripts execute one by one but I want them to execute at the same time.