• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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:
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
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
 
Level 19
Joined
Feb 4, 2009
Messages
1,313
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Status
Not open for further replies.
Top