Attack Animation Tag

jarekpl12

TH.net Regular
Reaction score
6
is there any possibility to make unit look like it is attacking while it is not? I tried this but doesn't work: Animation - Add the attack animation tag to (Triggering unit)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
is there any possibility to make unit look like it is attacking while it is not? I tried this but doesn't work: Animation - Add the attack animation tag to (Triggering unit)

Animation tags dont work this way.
An animation tag is "alternate" for example. When morphing a unit into a different looking part, like the demon hunter into his metamorphosis form.

Attacking is a simple animation, not an animation tag.
To make the unit look like its constantly attacking you would need to have a periodic trigger run and constantly force the unit to play its attack animation.
Like this:
Code:
Event
 every X seconds of game time
Conditions
Actions
 animation - play SOMEUNITS attack animation
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
one more thing... how to disable an unit to auto attack?

Either remove its attack, or give it the "worker" classification, or, but only if it is a melee unit, set its acquisation range to 1.00.
 

jarekpl12

TH.net Regular
Reaction score
6
damn now i have problem:/ Forgot that if worker is being attacked he runs away from attacker... It can't move while casting the spell with added classification because casting just stops... btw it's ranged unit... is there any other way?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
There is a field in the object editor which is called "can flee", its default value is "true" for every unit. Change it to false and your workers will not run if they are being attacked.
 

jarekpl12

TH.net Regular
Reaction score
6
thank you.. i never use that... Damn it still auto attacks when i cast ability with added classification of worker
 

Inflicted

Currently inactive
Reaction score
63
Well you could just make a trigger that makes the attack damage 0

There is no trigger that sets damage, only adjusting attributes of hero's or adding/removing damage abilities. Perhaps also switching units.
Also, please don't double post.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top