• 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 pos and Z pos

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
For getting mouse x/y, no, not possible. You could use trackables. Trackables are like invisible square tiles in a way. So you would have to cover the whole map with trackables, and even still the solution might not be accurate dependong on the size of the trackables. It could also cause fps drop. I believe trackables won't register mouse position if there is a unit/doodad above the trackable. So basically forget about it.

For Z position use GetLocationZ function.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Determining the X/Y/Z coordinates that the camera is looking at (camera target) is possible.
Determining the X/Y/Z coordinates that the player's mouse is at is not possible.
 
Status
Not open for further replies.
Top