Jump to content

Recommended Posts

Posted

Hi everyone i am using the middle mouse buttons scroll to set my camera's position which works fine but i am trying to make it so when i hit the E key it resets the middle mouse to 0,

 

when i use window:SetMousePosition(0,0,0) it sets my mouse cursor to 0,0 on the screen fine but the z axis(the middle scroll wheel) stays at the value it was at, currently i can find no way to set the middle mouse back to the 0 position.

 

so for example if i set up a print command that prints out the middle mouse position then scroll out to say -7 which all works fine but then if i hit E the mouse is set to position 0,0 like it should be but the middle scroll wheel stays at a value of -7.

 

Thanks for any future help.

Posted

Thanks that worked great, dunno why i didn't try that especially when iv used that exact command just for keys in the past just one of those brain fart moments i think.

 

thanks for your help macklebee.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...