hovering over with a mouse detection

Status
Not open for further replies.
Level 9
Joined
Dec 31, 2016
Messages
320
Hi there, how can I detect whether a player hovers over something with a mouse? Or click on something?
For example when the players hovers over the minimap or some buttons or a unit.

I assume you can do it only in jass, right? :D
 
Level 25
Joined
Feb 9, 2009
Messages
1,800
My resource Necrotic beam uses mypad's mouse utility which easily tracks the players mouse movements, as seen in my resource the custom code is like this
upload_2021-1-7_14-5-37.png


With this you can simply add in a trigger that checks distance between the players mouse and the target object.
 
Status
Not open for further replies.
Top