Search the Community
Showing results for tags 'mouse lua'.
I'm in the process of developing a RTS camera script in the style of Command and Conquer. So far I've modified the spectator script so that if you move the mouse to the top of the screen the camera moves forward. If you move the mouse to the bottom of the screen the camera moves backwards. Likewise if the mouse moves left or right the camera follows. I've even got the height of the camera linked to the mouse wheel. What I would like to do is to rotate the camera by pressing the middle mouse button and moving the mouse in the direction I want the camera to rotate. local mhit =