• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need GetDamageType function

Status
Not open for further replies.
Level 3
Joined
Apr 17, 2008
Messages
41
I've been looking for a function that would get the damagetype of the damage a unit takes, but I can't seem to find one. Does anyone know of something I could use for this? Does something exist for this?
 
if you want to check if a damage type is either spell or normal dmg you can use an orb effect which places a buff for a very short duration (0.01 sec)
make a trigger which fires every time a unit takes damage and check if the unit got the buff
if yes you know that the unit just dealt normal damage
you don't have to give this orb effect ability to every unit
just add it if a unit enters the map
 
Status
Not open for further replies.
Back
Top