Jesus4Lyf
Good Idea™
- Reaction score
- 397
Good Idea (TM).
Good Idea (TM).
Why should he? It's pretty clear that Damage is far better than this. Infact, counting the damage a unit has taken is very simple to do by yourself, there's no need to import this system as long as you have a damage detection system.Could you plz stop advertising your stuff in my thread.
It does far more, and far more useful stuff than this snippet does...Your Damage Does other stuff this snippet does.
J4L is just making a (very valid) suggestion which would make this script better as a whole (since Damage would handle everything neatly and efficiently).If you dont have anything useful to say about this then go post it in the general discusion and moan there ok. Hence the [snippet] and [system] are separating the things and this is a [snippet] so it does short things not huge stuff like [system].
That's alphabetical library sorting for you Although it's not necessary in this case, it should be addedWho's the mod? I think it's J4L.
I can't beleive this code works anyways, if you use AIDS, you should add to the library name requires AIDS...
What if the unit is only ever struck by the aoe of spells and attacks, or by some other arbitrary damage dealer? This system still won't work for that.hey ok the updates added and now it adds the spell target too.
And what if a targetted point is never registered because it's a random trigger-inflicted damage instance. And what if...etc.ya i actualy noticed that and what i though was to create a unit group at the targeted point and add them. Not sure if there is another way
call TriggerRegisterUnitEvent(DCT, added, EVENT_UNIT_DAMAGED)
call TriggerAddAction( DCT, function Detect)