Get Position Mouse Cursor? -
HitnKill - 07.04.2013
Hi ! I want to detect when the mouse cursor hovering an textdraw. Its possible?
https://sampwiki.blast.hk/wiki/SelectTextDraw
I dont need a code for c/c but i want to explain me thanks !
Re: Get Position Mouse Cursor? -
Pottus - 07.04.2013
I don't think that would be possible.
Re: Get Position Mouse Cursor? -
XStormiest - 07.04.2013
Note: TextDrawSetSelectable or PlayerTextDrawSetSelectable MUST be used first, to allow a textdraw to be selectable.
But that thing is not possible, only to click the textdraw..
Re: Get Position Mouse Cursor? -
SchurmanCQC - 07.04.2013
This is impossible in Pawn.
It is possible with plugins but this only gets the server's mouse position. This also doesn't work on linux.
Re : Get Position Mouse Cursor? -
HitnKill - 07.04.2013
Okay

tanks !
Re: Get Position Mouse Cursor? -
iJumbo - 07.04.2013
you have to setup a server-client plugin and "give" the .dll to all clients so you can get mouse cursor pos
Re: Get Position Mouse Cursor? -
RajatPawar - 07.04.2013
You can, I guess, Y Less had done something like this, using camera vectors, but it's difficult maths and inacccurate.
Re: Get Position Mouse Cursor? -
Scriptery - 23.07.2016
Hmmm.. creating many squares of TextDraw's (almost transparent box) when you store to create positive, and you will call the square called onplayerClicktextdraw that coordinates!
Re: Get Position Mouse Cursor? -
Nero_3D - 23.07.2016
Quote:
Originally Posted by Scriptery
Hmmm.. creating many squares of TextDraw's (almost transparent box) when you store to create positive, and you will call the square called onplayerClicktextdraw that coordinates!
|
Getting the clicked position is no problem but he wanted the hover position
Re: Get Position Mouse Cursor? -
Battlezone - 23.07.2016
Quote:
Originally Posted by Nero_3D
Getting the clicked position is no problem but he wanted the hover position
|
Exactly.
However, if there was a textdraw color detection feature, it will become possible using his method. Something like TextDrawGetColor as the textdraw color would change on hover.
Anyway I can't expect Kalcor adding a feature like this one so I guess this would be forever impossible on samp.