HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How-to this spell..

10-12-2007, 09:10 PM#1
Lordy
I already made the spell, but I want to edit it slightly. I just don't know how to do the edit right. Somewhere during the spell the hero is flying in the air.
Zoom (requires log in)

I pause the hero with PauseUnit(.., so that he cannot break his animation.
Right now the spell cannot be canceled. The hero remains in the air for a set duration. I want to change this. The player should be able to decide when the hero comes back to the ground again. The problem is.. how can I let the player decide anything.. if the hero is _Paused_. He cannot be ordered. His command card is empty.
Maybe somehow I can keep the hero from disrupting his animation without pausing him?
Attached Images
File type: jpgspell.jpg (42.3 KB)
10-12-2007, 09:58 PM#2
aaero
SetUnitTimeScalePercent( unit target, real animationspeed )
(there is a GUI equivalent, I don't remember it)

you can freeze animation speed with that function (set it to 0, then 100 when you want the animation to return).

Alternatively, you could select a hidden copy of the hero and give it the ability to cancel the spell (or you could try to capture commands given to the copy and pass them on to the original target).

I would go with option #1 though.
10-12-2007, 11:32 PM#4
Pyrogasm
Because it might have been something non-trigger-related.

Edit: The action you're looking for is this:
Trigger:
Animation - Change (Last created unit)'s animation speed to 0.00% of its original speed