| 04-18-2008, 02:02 PM | #1 |
So, I guess everybody should remember... JASS:
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_DEATH)
Is supposed to trigger after: JASS:
call TriggerRegisterUnitStateEvent(t,u,UNIT_STATE_LIFE, LESS_THAN, 1.0)
As a matter of fact, using the Unitstate event was the only way to verify if a unit dies with certain buff. However, for some reason now that I test stuff again... Death is triggering before unit life!. I can not help but blame the beta patch, can anybody confirm this? Edit: Downgraded to 1.21b and death still triggers before life state? This is odd, does anybody remember life triggering before death? |
| 04-18-2008, 02:32 PM | #2 |
Is it not logical thou? A unit goes below 1 hp, then the game or whatever determines death? |
| 04-18-2008, 02:40 PM | #3 |
Both events trigger almost at the same moment, I just think Death used to trigger after Life change, it is odd If I am not mistakenly reading my own code: http://www.wc3jass.com/viewtopic.php?t=244 It is based off the assumption death event triggers after life event. Else it wouldn't work at all, I do remember that function working... Edit: lol though, this helped me find out a much better reincarnation detection method. |
| 04-18-2008, 10:30 PM | #4 |
EventDamage Damage > CurrentHP == death Reincarnation Detection not need to have events run in order, need 2 events in short time |
| 04-18-2008, 10:34 PM | #5 |
Yeah, thanks for your useless contribution, did you noticed there are more ways to die than damage? That one only works for damage blocking which is something I did some ages ago, but it is useless for reincarnation. Anyways, if someone like me remember unit life event triggering before death, send me a pm |
