- 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
is triggered BEFORE the damage is actually dealt.
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
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?
It appears that the event
JASS:
EVENT_UNIT_DAMAGED
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)
I just thought it'd be good to share this discovery. Or maybe DDS developers already know this?