• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Custom Script to Stop its leaking Animation on the Unit...

Status
Not open for further replies.
Level 7
Joined
May 23, 2011
Messages
179
Guys how will be the custom script of this Trigger because the animation causes
leak.....
How to destroy this:
  • Berserk
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berserk (Rugbyboys Warlord)
    • Actions
      • Set Unit_Array_Special_Effect[1] = (Triggering unit)
      • Special Effect - Create a special effect attached to the origin of Unit_Array_Special_Effect[1] using Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
      • Wait 15.00 seconds
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation ( udg_VO_Point[3] )
Thanks.....:goblin_cry::goblin_cry::goblin_cry:
 
Throw in a little bit of JASS and it becomes easy:
  • Actions
    • Custom script: local effect e
    • Set u = Triggering unit
    • Custom script: set e = AddSpecialEffectTarget("Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl", udg_Unit_Array_Special_Effect[1], "origin")
    • Wait 15.00 seconds
    • Custom script: call DestroyEffect(e)
    • Custom script: set e = null
 
Last edited:
Status
Not open for further replies.
Back
Top