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

How to put an animation on attacks, trigger

Status
Not open for further replies.
Level 7
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