whipz Posted March 2, 2017 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
LoudPacks Posted March 2, 2017 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
Zappster Posted March 2, 2017 Posted March 2, 2017 16 minutes ago, LoudPacks said: You cant move to the z axis because the screen is 2-dimensional. 7
whipz Posted March 2, 2017 Author 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 !
Satire Posted March 2, 2017 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.