Jesus4Lyf
Good Idea™
- Reaction score
- 397
It doesn't work for removal, and my best assumption is it is before the unit is lost (JUST before).
Now please stop dismissing it, and try it out? Lol
Now please stop dismissing it, and try it out? Lol
JASS:function TriggerRegisterReincarnationEvent takes trigger t, boolean finish returns nothing //Causes t to register a unit reincarnating. //~~boolean finish: If true, the event fires on reincarnation finishing. // If false, the event fires on reincarnation starting. function TriggerRegisterResurrectionEvent takes trigger t returns nothing //Causes t to register a unit resurrecting. function TriggerRegisterOutOfScopeEvent takes trigger t returns nothing //Causes t to register a unit leaving the scope of the game. function GetReincarnatingUnit takes nothing returns unit //Returns the unit which fired a reincarnation event. function GetResurrectedUnit takes nothing returns unit //Returns the unit which fired a resurrection event. function GetScopingUnit takes nothing returns unit //Returns the unit which fired an out of scope event. function GetWasAnimated takes nothing returns boolean //Returns whether the unit was animated using Animate Dead (For ResurrectionEvent and OutOfScopeEvent).
Basically just before the unit ceases to exist. IE: Just before the unit is removed/decays/explodes.
It doesn't work for removal, and my best assumption is it is before the unit is lost (JUST before).