Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnEvent(event, arg)
- if arg == 2 then -- checks if the event is the right mouse button status changing
- if event == "MOUSE_BUTTON_PRESSED" then -- makes sure it is being pressed
- while IsMouseButtonPressed(3) do -- 3 is the id of the right mouse button, loop will end when this is no longer true
- -- Do code
- Sleep(1000) -- Delay between code running in ms
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement