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

Make Unit Stand Still, Playing Animation

Status
Not open for further replies.
Level 8
Joined
Mar 26, 2009
Messages
301
What I am trying to acomplish here is an autocast shackles ability. I can base the hero ability on fearie fire for example. And make dummy unit to cast the real shackle spell. But:
- Hero needs to look occupied (facing target direction, playing certain animation etc),
(I would try entangling it to prevent movement, but controlling player can make it turn around itself and it would probably interrupt the spellcast animation...)
Actually, couple of other methods come to my mind but, none of them are what I want here exactly. So I am asking you guys.. (to make it like a brain-storm =p)
So what are your suggestions? How do I make an autocast Shackles ability?
(It doesn't need to be MUI, It shouldn't be Jass)
 
Level 6
Joined
May 20, 2010
Messages
94
This should help you.
A paused unit can't move or be controlled by the player, but can still perform animations.
  • Actions
    • Unit - Pause Caster
    • Unit - Make Caster face Target over 0.00 seconds
    • Animation - Play Caster's spell animation
Use your dummy unit to cast shackle and unpause your casting unit at the end.
Done.
 
Level 8
Joined
Mar 26, 2009
Messages
301
Yeah, the problem was; it should be cancelable by player at will, which is not possible with that method. It was too idealistic to think that I could do it that simple lol. I made a non-autocast version. (Shackles also drags the enemy unit, unless canceled; it's not just a shackles =p) Since it will be mostly used by a computer players. I can trigger them to cast the spell at random times =) Thanks for the advise anyway =)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Create a custom spell based on Channel and give it some follow through time. Add the channel ability in hidden spell book. When the real ability is autocasted, order the unit to use the (instant) channel ability. Use a small delay there if needed.

You can remove the spell book and then re-add it to abort the channeling or maybe just issue stop order.
 
Status
Not open for further replies.
Top