• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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