Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Thats the only way it's possible, by getting the camera front vector to move the mouse, which is no real mouse.
There is no explicit function for getting the mouse position directly, only through clickable textdraws.
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Well, damn. I wanted to create simple drag&drop but I can get position only onclick using textdraws. Maybe in near future...
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Well you could get to work "drag and drop" by clicking whatever you want to drag and then clicking the destination as second.
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Well, the problem is that I _can't_ detect the mouse position. I wanted to port good ol' javascript drag and drop (using onmousemove event with debouncer), but there isn't function in pawn which would return mouse coordinates. You can only emulate it while player is not spectating, and by getting position of textdraw which gets clicked.