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

How to put an animation on attacks, trigger

Status
Not open for further replies.
Level 8
Joined
Jul 11, 2008
Messages
104
Hello, I have a trigger that adds a resource every time a certain building is attacked.

Unit - A unit is attacked

(Triggering unit) equal to xxxx

Player - Add x to (Owner of (Attacking unit's)) Gold / Lumber.

How do I make it so an animation, like, for example, a flame strike or frost nova plays on that building?

Thanks.
 
  • Actions
    • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
    • Special Effect - Destroy (Last created special effect)
Something like that. Switch the "Abilities\Spells\Demon..." with whatever your special effect is.

It depends, if you want to have it long-term (as in, wait before destroying it), you might need to use hashes for MUI, either that or arrays or some random MUI/leak fixing system.
 
Status
Not open for further replies.
Top