• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Mouse Position / Angle

Status
Not open for further replies.
Level 5
Joined
Jun 12, 2016
Messages
74
I'm making an ability that does this: after I click the ability button the hero is constantly looking at the mouse position or angle between him and the mouse.

But I can't get mouse position if I don't click, how can I do that/Is is possible to do it?
 
Level 7
Joined
Apr 17, 2017
Messages
316
You can get the mouse position with these natives:
JASS:
native BlzGetTriggerPlayerMouseX                   takes nothing returns real
native BlzGetTriggerPlayerMouseY                   takes nothing returns real
native BlzGetTriggerPlayerMousePosition            takes nothing returns location
 
Status
Not open for further replies.
Top