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

unit takes damage..get unit

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
When a unit is being attacked, I call the following action:
Trigger - Add to testTrigger the event (Unit - (Attacked unit) Takes damage)

Now, how do I access that unit in my other trigger? Triggering Unit isn't working, Attacked Unit isn't working either~ :/

/e: my mistake..triggering Unit works
 
Last edited:
Level 24
Joined
Aug 1, 2013
Messages
4,658
To answer your question, the units that are being referenced are "Damaged unit" and "Damage source".
Damaged unit can also be retrieved by "Triggering unit".

However, you should use a damage detection system for this as you are now, as far as I know, piling up events.
First of all that is pretty much breaking the functionality of your trigger, but also piling up stuff that you cannot remove so easily.
So, if you keep doing this, your map will lag very fast.
 
Status
Not open for further replies.
Top