Jump to content

getCursorPosition


Xwad

Recommended Posts

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 by WorthlessCynomys
Link to comment
  • Discord Moderators

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 by Pirulax
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...