I've got a Zealot and a Zergling dancing, with the Play Forever flag on at Play Animation for Actor, the Zealot dances forever, the Zergling freezes after 1 dance execution...
I've looked through the actor events of both, Zealot does have some Dance Taunt stuff, after copying it to Zergling it was still the same...
You can test this yourself by just using Play Animation on either unit, they act like this by default
Well, a way to do this is create a trigger that uses "periodic event" event tell it to "play animation 'Taunt' " every "(Time how long the animation last)" @SweetZombieJesus: Go
That's exactly what I tried, but it didn't work.. still freezes at the end or stands idle if Play Forever is off
Maybe it's some flag the actor needs set somewhere? I tried comparing Zealot and Zergling but they seem the same, other than the fact that Zealot has dance events (which I tried on zergling)
Edit: also tried Animation Done but nothing, just returns to idle
Hm, that's wierd. It looks like that particular animation is broken somehow. Anyway use a timer to reset the animation and it'll work (I tested it to be sure.)
Timer does work but it just resets the animation mid-dance (the zealot and zerglings are examples, there are 8 dancing units ingame, it has to work for all of them) so this is a very ugly solution.
I tried Start Animation Bracket but I'm not sure what to fill in there, I just did stuff and it was the same...
No one can figure out why a simple event wont work when animation is done? :(
Hey,
I've got a Zealot and a Zergling dancing, with the Play Forever flag on at Play Animation for Actor, the Zealot dances forever, the Zergling freezes after 1 dance execution...
I've looked through the actor events of both, Zealot does have some Dance Taunt stuff, after copying it to Zergling it was still the same...
You can test this yourself by just using Play Animation on either unit, they act like this by default
Any ideas?
@SweetZombieJesus:
Some animations are looping and others aren't. Play Forever will cause a non-looping animation to freeze at the end until cleared.
@RileyStarcraft: Go
and in cases as such add another event, when animation finsihes, tell it to start over.
I tried that but couldnt get it to work Could you show me how to do this with this animation, Taunt Dance ?
Well, a way to do this is create a trigger that uses "periodic event" event tell it to "play animation 'Taunt' " every "(Time how long the animation last)" @SweetZombieJesus: Go
Quote from SweetZombieJesus:
I tried that but couldnt get it to work Could you show me how to do this with this animation, Taunt Dance ?
----
(whatever event to start dancing)
AnimPlay Dance Taunt Dance
Animation Done
AnimName Dance
AnimPlay Dance Taunt Dance
That's exactly what I tried, but it didn't work.. still freezes at the end or stands idle if Play Forever is off
Maybe it's some flag the actor needs set somewhere? I tried comparing Zealot and Zergling but they seem the same, other than the fact that Zealot has dance events (which I tried on zergling)
Edit: also tried Animation Done but nothing, just returns to idle
Hm, that's wierd. It looks like that particular animation is broken somehow. Anyway use a timer to reset the animation and it'll work (I tested it to be sure.)
Timer does work but it just resets the animation mid-dance (the zealot and zerglings are examples, there are 8 dancing units ingame, it has to work for all of them) so this is a very ugly solution.
I tried Start Animation Bracket but I'm not sure what to fill in there, I just did stuff and it was the same...
No one can figure out why a simple event wont work when animation is done? :(
@SweetZombieJesus:
Like I said, it's that particular zergling animation that's broken. Anyway here's what you do:
- Make a behavior called "Dancing"
- For every unit you want to be able to make dance, add the following to their actor events:
Behavior.Dancing.On
AnimBracketStart Dance Ignore Stand,Dance Ignore
Behavior.Dancing.Off
AnimBracketStop Dance
- For the zergling only, add the following to their actor events:
Behavior.Dancing.On
AnimPlay Dance Stand,Dance
Behavior.Dancing.On
TimerSet Dance 5.00
TimerExpired
TimerName Dance
AnimPlay Dance Stand,Dance
TimerExpired
TimerName Dance
TimerSet Dance 5.00
Behavior.Dancing.Off
TimerKill Dance
Behavior.Dancing.Off
AnimClear Dance
It's not pretty but annoying bugs require annoying workarounds.
@RileyStarcraft: Go
Thanks for the help, going to try and do that in a few days. Kinda tired of the events window for now :P