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

[Spell] Spell Animations In Triggers

Status
Not open for further replies.
Level 11
Joined
Aug 6, 2009
Messages
697
Hello, I am having an issue where the animation of a unit is not being activated. I believe it's because the object editor spells always play an animation regardless if there is an animation in the "Art - Animation Names" category.

  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Channel
    • Actions
      • Custom script: call SetUnitAnimationByIndex(udg_UST_Caster[udg_UST_Index], 16)

My assumption is that as soon as the spell is detected the trigger's animation fires first and then the spell overwrites it and plays the spell animation instead. I tried adding the name of the animation (Spell Channel 2) to the "Art - Animation Names" category but it still doesn't use that animation. Instead, the caster uses the stand animation.

Is there anyway to fix this problem whether it's with triggers or in the object editor? I know if I delay the animation call by even a millisecond the "SetUnitAnimationByIndex" will work. However, I don't want to add a short 0.03 timer to a loop just to make it happen in an instant spell.
 
Status
Not open for further replies.
Top