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

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