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

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
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