• 🏆 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!

Getting X and Y position of player mouse.

Status
Not open for further replies.
Level 6
Joined
Nov 3, 2005
Messages
103
I'm trying to create a camera system in which the player's camera follows an averaged point between both the x and y positions of the player's hero and the player's mouse position. This will give more freedom to viewing the map around the player's character, but still limits them to viewing wherever they please, to give you an idea of what I want.

It's a simple concept, but the Worldeditor has no "X coordinate of mouse" function to choose from, which is pretty obismal.

Any ideas?
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
Well... there are 2 ways of tracking the mouse position of the player.

1. Make a dummy unit, select that unit, force-UI to cast spell, force player to click.
Target point of ability being cast = position of mouse.

2. Create trackables.
Make numberless trackables over the map and then you have a hover event and click event.
However this is very costly and will be glitchy.
 
Status
Not open for further replies.
Top