• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

A question on "EVENT_UNIT_DAMAGE"

Status
Not open for further replies.
Level 11
Joined
Sep 14, 2009
Messages
284
This is just a little thing I discovered when I was developing my damage detection system and was wondering if it is suppposed to be this way or if the fault is in my map somewhere (though I doubt it).

It appears that the event
JASS:
EVENT_UNIT_DAMAGED
is triggered BEFORE the damage is actually dealt. o.O

When I tried to get the damaged unit's HP immediately after the event was triggered, the unit wasn't even damaged yet. When I inserted
JASS:
call TriggerSleepAction(0.01)
the damaged unit's HP was lowered correctly by the damage.

I just thought it'd be good to share this discovery. Or maybe DDS developers already know this?
 
Status
Not open for further replies.
Back
Top