• 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.

sfx on unit when attacking

Status
Not open for further replies.
Level 3
Joined
Jun 13, 2006
Messages
45
I searched the forums for this problem but I did'nt find answer.
So basically, I want my unit to display a weapon attachment (the flamethrower effect by talon the mage in this case), but ONLY when it attacks. I can't figure out how to make a simple and leaks free trigger that would add the attachment when the unit attacks, then remove it when it stops attacking.
Any suggestion is welcome :)
 
Level 3
Joined
Jun 13, 2006
Messages
45
you're right, it would be easier, unfortunately i'm using the unit model with other weapons, so I can't allow myself importing the same model twice as I try save the file size.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
then edit weapon model to make this on attack animation
You add attack animation to it and make it burst particles on attack animation
when ur unit plays attack weapon plays attack to
Not %100 sure about this
 
Level 3
Joined
Jun 13, 2006
Messages
45
Indeed I'm not sure of that too, would be cool... in the mean time, the effect author would have done it if it was possible, don't you think?
 
Level 17
Joined
May 6, 2008
Messages
1,598
  • SPECIAL EFFECT
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the chest of (Attacked unit) using Objects\Spawnmodels\Demon\DemonSmallDeathExplode\DemonSmallDeathExplode.mdl
      • Wait 1.00 seconds (optional)
      • Special Effect - Destroy (Last created special effect)
Not leak less.
 
Status
Not open for further replies.
Top