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

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 73
Joined
Aug 10, 2018
Messages
7,866
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