- Joined
- Apr 21, 2013
- Messages
- 1,194
I have a triggered spell and while the unit casts this spell I want him to play a specific animation.
so normally the custom script should call the animation but during game the unit tries to start the animation but he suddenly stops in a few miliseconds.
Is there any solutions you guys know?
-
Oblitorate Execution
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Obliterate
-
Actions
- Set Oblitorate1Index = (Oblitorate1Index + 1)
- Set Oblitorate1Target[Oblitorate1Index] = (Target unit of ability being cast)
- Set Oblitorate1_counter[Oblitorate1Index] = 0
- Unit - Cause (Triggering unit) to damage Oblitorate1Target[Oblitorate1Index], dealing 144.00 damage of attack type Pierce and damage type Normal
- Custom script: call SetUnitAnimationByIndex( GetTriggerUnit(), 30)
- Special Effect - Create a special effect attached to the chest of Oblitorate1Target[Oblitorate1Index] using Objects\Spawnmodels\Orc\Orcblood\BattrollBlood.mdl
- Special Effect - Destroy (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Oblitorate1Index Equal to 1
-
Then - Actions
- Trigger - Turn on Oblitorate Bleed Loop <gen>
- Else - Actions
-
If - Conditions
-
Events
Is there any solutions you guys know?