Xwad Posted August 13, 2018 Share Posted August 13, 2018 Is it possible to use getCursorPosition without making the cursor visible? Link to comment
WorthlessCynomys Posted August 13, 2018 Share Posted August 13, 2018 (edited) You can try the getCursorPosition() if that does not work (I have no idea whether it does) then you can use the onClientCursorMove event which returns it's position upon moving it. Note that while non-visible, the cursor's position is always (0.5;0.5). When it moves, the onClientCursorMove returns the curremt position of it (which is jumping between the value and the 0.5;0.5 positions, since the cursor tries to be always in the middle). Edited August 13, 2018 by WorthlessCynomys Link to comment
Keiichi1 Posted August 13, 2018 Share Posted August 13, 2018 If the cursor isn't showing, returns false as the first value. Link to comment
Discord Moderators Pirulax Posted August 13, 2018 Discord Moderators Share Posted August 13, 2018 (edited) If the cursor isn't showing the it's in the center of the screen. Where do you need the cursor position? If for some kind of object preview thing, or custom weapon system and such, we you can move around you can use: onClientCursorMove Edited August 13, 2018 by Pirulax Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now