Hiding Movement UI & Playing unit Animations

Omni

Ultra Cool Member
Reaction score
37
well some questions:

1. is it possible to hide the movement UI? (and hold position if possible)

2. How to play a units exact animation? eg. i say 'play Monster 0006's Attack animation
that it doesnt do attack 2 :p

thx
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
1. at the cost of the movement-speed, yes: set movement-speed to 0 in the object editor, and no buttons in the UI will be present

1. animation - play unit's attack animation; you can also specify rarity; but if it's one unit type only, just type in the exact string of the animation name
 

Tinki3

Special Member
Reaction score
418
>How to play a units exact animation?

Use 'Set anim. by Index':
JASS:
Custom script:    call SetUnitAnimationByIndex(unit, 1)

To check a units animation indexes, play them in game the same way, and use BJDebugMsg() to display what integer is being played, and you can then use the integer for whatever animation you need.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
610
I didn't know you can do that :banghead: I've been using (Attack, 1) and the unit never plays the right animation.
 

Omni

Ultra Cool Member
Reaction score
37
A bit late but thanks tinkie, +reppage
and doomhammer; the unit should still be able to move by triggers :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top