• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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