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

What world editor has the generic unit event "a unit takes damage"?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2008
Messages
263
JassNewGen pack 5d only have <Specific> unit takes damage.

Maybe the thing i seek doesnt exist?

---------------

just found it by using google lol...

Trigger - Add event ((your unit reference) takes damage) to Trigger (your trigger)
 
Level 9
Joined
Dec 17, 2007
Messages
431
This is from the top of my head, but just add a trigger with the event, "a unit is attacked" and then add a "trigger addEvent" where the event will be "[attacked unit] Takes damage" and the trigger is some trigger you have already done with the right conditions and so on.

now hopefully this is triggered in the right order as I think "is attacked" is triggered before "takes damage"

This way you will be able to check HOW much damage it has taken and so on.
 
This is from the top of my head, but just add a trigger with the event, "a unit is attacked" and then add a "trigger addEvent" where the event will be "[attacked unit] Takes damage" and the trigger is some trigger you have already done with the right conditions and so on.

now hopefully this is triggered in the right order as I think "is attacked" is triggered before "takes damage"

This way you will be able to check HOW much damage it has taken and so on.

Sadly, <Unit> is damaged occurs before it is attacked. =( Weird, huh.
 
Status
Not open for further replies.
Top