• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,657
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