Aller au contenu

Photo

problem with attack animation cancelling


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
i've made a setup for the aoe stun creature where the stun attack animation is played first:
         command cPlayAnimation = CommandPlayAnimation(145);
         AddCommand(GetObjectByTag("gale_inquisitor"), cPlayAnimation, TRUE, TRUE);
         event evCustom = Event(EVENT_TYPE_CUSTOM_EVENT_03);
         DelayEvent(2.0, GetObjectByTag("gale_inquisitor"), evCustom);

and then 2.0 seconds later the stun effect itself is created so there's a little mangaesque lag between the sword hitting the floor and the actual ground vfx and the stun effect in itself. now it looks good when the inquisitor isn't under attack, but when i attack him with the pc the animations get's cancelled for some reason (on damage?) and the stun vfx and stun effect is created even though the enemy hasn't hit the ground with his sword, or the timing is off. how do i get around this problem? do i have to make it an ability so it can't be interrupted or can i somehow remove the interruption via coding?

#2
Kesaru

Kesaru
  • Members
  • 130 messages
It sounds to me like the hit reaction animation is overriding yours. I don't know enough about animations to give a clear solution, but it should work if you either make it into an ability like you said, or find a way to give your animation a higher priority.