• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to disable mouse click unit movement?

Status
Not open for further replies.
Level 6
Joined
Jun 1, 2008
Messages
95
I searched around and found no systems that can disable movement of unit by mouse.

I am going to input arrow keys movement into my game but i want to prevent players from moving their units using their mouse, which defeats the purpose of the game.

Anyone with any ideas? :eekani:
 
Level 11
Joined
Mar 8, 2006
Messages
277
Check my map is in map developmant the Warcraft 3 Wrestling it has movemant from keyboard if u meant that with no move speed.


U will need 3 triggers

One for player presses up arrrow key it sets the conditions for go.
One action trigger when u move the unit in front of it while u play his walk animation.
One for player realases up arrow key when the unit it stops.
And u set the movespeed to 0 from object manager.

There is a call set unit animation by index to play the walk animation or any even if u stay.
 
Status
Not open for further replies.
Top