• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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.
Back
Top