• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Physical Damage Detect

Status
Not open for further replies.
Level 12
Joined
Nov 20, 2007
Messages
660
Hello guys. How knows how can i detect physical damage becose
  • Unit - A unit Is attacked
Doesn't work very good. To put the units in a unit group and check if they take damage it's not working becose it will detect the magical damage also.
+rep who can help :ogre_hurrhurr:
Status : UNSOLVED
 
Last edited:
Level 8
Joined
Mar 3, 2009
Messages
327
I had this same question not that long ago. The easiest way is to give every unit (easiest way is via triggers) a custom orb of corruption ability that does nothing, and lasts for 0.01 seconds. And then all you need to do is detect in your trigger if the damaged unit has the buff and it should be good.

The problem with this is losing your orb effect, but if I was you i'd trigger the orbs anyway because they can tend to get buggy.
 
Status
Not open for further replies.
Top