To prevent my heroes from dropping their stuff on death I work with an behavior that launches an effect on fatal damage response.
When I try to use the "Effect Used" event in the trigger editor to catch that effect, it is not allways firing. When the behavior is added to a Marine, everything works fine. But when added to Zeratul, the event is not firing.
Does anyone know why this could happen / has another idea to detect the "almost death" ???
Well, I also use this behavior and response to prevent death of my heroes, and the event always fires. But my hero never dies, it is just hidden and moved.
Modify the damage the unit gets to 0 (so that it won't die) and test if the event fires then. Also, check if zeratul really has the behavior and if there aren't any other conditions that might exclude him.
I do exactly the same thing, Zeratul does not die. He just gets hidden, invulnerable and moved away. And that all works fine, so I know that the effect is launched. Its just the trigger that doesn't fire. And there are no conditions for that trigger so thats not the problem.
Hm, how is the behavior added? Does the unit have it by default or is it added in triggers? I have seen some differences between "transfer behavior" and "add behavior"
So the unit doesn't die? That's what the behavior does. All the moving/making invulnerable is done in triggers, right? And none of these things happen (=trigger not fires) and the unit just stands where it is and keeps on fighting since it doesn't die?!
As I said, all works fine. The effect that is launched adds another behavior that makes invisible, invincivle and so on. All is done through the data editor and there are no problems there. I just want to move the unit to another location via triggers once the "Incapacitated" behaviour is on the unit.
My best shot was the "Effect Used" event on the effect that is launched to apply the "Incapacitated" behavior. But it doesn't fire when I use Zeratul. If I add the first behavior to a Marine and try to kill him, all is well and the unit is moved. I compared the two units but couldn't find any mayor differences.
I tried areound a little bit, is there anyway to fix this? Setting the "Acquire Player" field of the "Death Prevention" behaviour that fires the effect doesn't help...
As I said, all works fine. The effect that is launched adds another behavior that makes invisible, invincivle and so on. All is done through the data editor and there are no problems there.
As said at least 3 times, the effect is launched! The problem is that the player is allways 0. No clou how I can change that...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
To prevent my heroes from dropping their stuff on death I work with an behavior that launches an effect on fatal damage response. When I try to use the "Effect Used" event in the trigger editor to catch that effect, it is not allways firing. When the behavior is added to a Marine, everything works fine. But when added to Zeratul, the event is not firing.
Does anyone know why this could happen / has another idea to detect the "almost death" ???
Thanks in advance ;) elunder
Well, I also use this behavior and response to prevent death of my heroes, and the event always fires. But my hero never dies, it is just hidden and moved.
Modify the damage the unit gets to 0 (so that it won't die) and test if the event fires then. Also, check if zeratul really has the behavior and if there aren't any other conditions that might exclude him.
I do exactly the same thing, Zeratul does not die. He just gets hidden, invulnerable and moved away. And that all works fine, so I know that the effect is launched. Its just the trigger that doesn't fire. And there are no conditions for that trigger so thats not the problem.
Hm, how is the behavior added? Does the unit have it by default or is it added in triggers? I have seen some differences between "transfer behavior" and "add behavior"
So the unit doesn't die? That's what the behavior does. All the moving/making invulnerable is done in triggers, right? And none of these things happen (=trigger not fires) and the unit just stands where it is and keeps on fighting since it doesn't die?!
As I said, all works fine. The effect that is launched adds another behavior that makes invisible, invincivle and so on. All is done through the data editor and there are no problems there. I just want to move the unit to another location via triggers once the "Incapacitated" behaviour is on the unit.
My best shot was the "Effect Used" event on the effect that is launched to apply the "Incapacitated" behavior. But it doesn't fire when I use Zeratul. If I add the first behavior to a Marine and try to kill him, all is well and the unit is moved. I compared the two units but couldn't find any mayor differences.
I found the reson for the event not to fire! The player that uses the event is player 0, so this is clearly a data issue.
I tried areound a little bit, is there anyway to fix this? Setting the "Acquire Player" field of the "Death Prevention" behaviour that fires the effect doesn't help...
Did you set the propability to 1?
I only changed 4 fields. Propability, checked "deadly", modfied damage to 0, and the effect that will be launched.
As said at least 3 times, the effect is launched! The problem is that the player is allways 0. No clou how I can change that...