• 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.

How to disable Auto-Attack?

Status
Not open for further replies.
Level 11
Joined
Dec 8, 2006
Messages
334
Can I disable auto-attack somehow?
I have an enemy unit standing near my hero, the hero automatically attacks. But I want him not to attack that unit unless I order him to do so.

If there is a way to disable auto-attack for whole map, it will be okay too.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
How about

  • Events
    • A unit is issued an order targeting a unit
  • Conditions
    • Issued order equal to Attack
  • Actions
    • Order (Triggering Unit) to Attack-Once (Targeted Unit)
That got to fix it. Maybe it will still continue because the unit is in range. Then you have to set the range of from how far a unit notices another unit to attack.
 
Level 1
Joined
Nov 4, 2008
Messages
3
Is there any other way besides pausing the hero?

I am making a small system where 2 players control 5 characters.

When one character is selected the others should be completely action-less (not move, not attack, not do anything - just stand there).

The problem with PAUSING the characters is that it also pauses their buffs, cooldowns etc.

I have tried using a peon-type classification, but it doesn't do anything.

I have also tried using a sapper classification, but that also doesn't do anything.

Lowering the acquisition range does work (sorta) but then the caster units go all the way near the unit they are attacking.

Also, using a Drunken Haze spell is a dirty way to do it.

So, if anyone has a bit cleaner system, I would love to hear your thoughts.


P.S. Sorry for high-jacking the thread, but I think its the same thing.
Thanks
 
Status
Not open for further replies.
Top