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

Order Dummy unit to attack when the caster attacks

Status
Not open for further replies.
Level 3
Joined
Nov 2, 2020
Messages
28
Hello guys i need some help on creating a trigger spell. This spell creates a dummy unit that attacks only when the casting unit attack, also the dummy follows the caster everytime.
But i dont know how to do it :(
Any help would be appreciating thnx.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,543
There is no generic unit Event for A unit takes damage in GUI. You can only do that for Specific Unit Events which is obviously an issue.

What you can do is use a Damage Engine to gain access to generic damage events -> Damage Engine 5.7.1.2

Or use the Attacked event. The problem here is that the Event runs when the attack starts, prior to it dealing damage, thus it can be interrupted and the Event will still go off:
  • Unit - A unit Is attacked
 
Status
Not open for further replies.
Top