whipz Posted March 2, 2017 Share Posted March 2, 2017 Hey guys, is there a way to move the mouse in an x , y , z format ? i have looked threw the API and i cant seem to see one; would be really useful for me on different camera angles to be able to lift the mouse in a Z axis Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted March 2, 2017 Share Posted March 2, 2017 (edited) You cant move to the z axis because the screen is 2-dimensional. However, you could get the bounding rectangle of an object and then create a MouseDestination and move the mouse there in order to interact with it. RectangleDestination(Bot bot, int x, int y, int width, int height) Edited March 2, 2017 by LoudPacks 3 Quote Link to comment Share on other sites More sharing options...
Zappster Posted March 2, 2017 Share Posted March 2, 2017 16 minutes ago, LoudPacks said: You cant move to the z axis because the screen is 2-dimensional. 7 Quote Link to comment Share on other sites More sharing options...
whipz Posted March 2, 2017 Author Share Posted March 2, 2017 35 minutes ago, LoudPacks said: You cant move to the z axis because the screen is 2-dimensional. However, you could get the bounding rectangle of an object and then create a MouseDestination and move the mouse there in order to interact with it. RectangleDestination(Bot bot, int x, int y, int width, int height) Ill give it a try thanks mate ! Quote Link to comment Share on other sites More sharing options...
Satire Posted March 2, 2017 Share Posted March 2, 2017 So you want the mouse to use the middle button to move the camera? There was someone who posted a snippet of it. Never used it though. Quote Link to comment Share on other sites More sharing options...