• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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,314
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Status
Not open for further replies.
Top