• 🏆 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!

[Trigger] trying to do a spell whos pretty easy

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
  • effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Deadly Throw
    • Actions
      • Special Effect - Create a special effect attached to the hand,right of (Casting unit) using Abilities\Weapons\DragonHawkMissile\DragonHawkMissile.mdl
      • Special Effect - Create a special effect attached to the hand,left of (Casting unit) using Abilities\Weapons\DragonHawkMissile\DragonHawkMissile.mdl
      • Special Effect - Destroy (Last created special effect)
and why isent this not working it makes one effect on right hand and its not disapairing its there all time ..... what is wrong how should i do this...

should look like he have 1 effect on each hand when he cast the ability then disapair :S
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Make a variable which you could call i.e. specialeffect.
Put an array to it.
Now, create the special effect and set the sfx to the variable you made
  • Special Effect - Create a special effect attached to the hand,right of (Casting unit) using Abilities\Weapons\DragonHawkMissile\DragonHawkMissile.mdl
  • Set specialeffect[0] = (Last created special effect)
Do the same for the second sfx and destroy them via
  • Special Effect - Destroy specialeffect[0] / [1]
 
Status
Not open for further replies.
Top