I have a simple trigger that spawns a carcass whenever a unit with a specified behavior dies, except for certain death types (fire, disintegrate...).
It works fine when the unit is killed from range but is inconsistent when a melee unit (i.e. zergling) lands the killing blow, only creating the unit some of the time. I have checked damage types so I don't think it has anything to do with that. I thought it may have been some collision issue, which it could be but I messed around with collision and offsets to no avail.
I have absolutely no idea why this is inconsistent only for melee kills.
_____________
Untitled Trigger 001
Events
Unit - Any Unit dies
Local Variables
Conditions
(Stack count of Gather- Is Small on (Triggering unit)) >= 1
(Triggering death type is Fire) != True
(Triggering death type is Disintegrate) != True
(Triggering death type is Blast) != True
(Triggering death type is Remove) != True
(Triggering death type is Timeout) != True
Actions
Unit - Create 1 Gather- Small Carcass for player 14 at (Position of (Triggering unit)) facing 180.0 degrees (No Options)
_________________
"Gather- Small Carcass" is the spawned unit
"Gather- Is Small" is the buff placed on units I want to spawn the Small Carcass.
Anyone have any ideas? I'm not even sure what else I could try to get this to work.
Turns out not ALL ranged kills triggers it. Marines have a low probability of triggering. Zealots have a fairly high probability of triggering it. As far as I can tell, Hydralisks ALWAYS trigger it. Ultralisks don't always trigger it.
Any other ideas for what I can try? Not sure where to go from here, I'll check validators and whatnot again. Will try just about anything.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a simple trigger that spawns a carcass whenever a unit with a specified behavior dies, except for certain death types (fire, disintegrate...).
It works fine when the unit is killed from range but is inconsistent when a melee unit (i.e. zergling) lands the killing blow, only creating the unit some of the time. I have checked damage types so I don't think it has anything to do with that. I thought it may have been some collision issue, which it could be but I messed around with collision and offsets to no avail.
I have absolutely no idea why this is inconsistent only for melee kills.
_____________ Untitled Trigger 001
Events
Unit - Any Unit dies
Local Variables
Conditions
(Stack count of Gather- Is Small on (Triggering unit)) >= 1
(Triggering death type is Fire) != True
(Triggering death type is Disintegrate) != True
(Triggering death type is Blast) != True
(Triggering death type is Remove) != True
(Triggering death type is Timeout) != True
Actions
Unit - Create 1 Gather- Small Carcass for player 14 at (Position of (Triggering unit)) facing 180.0 degrees (No Options)
_________________
"Gather- Small Carcass" is the spawned unit "Gather- Is Small" is the buff placed on units I want to spawn the Small Carcass.
Anyone have any ideas? I'm not even sure what else I could try to get this to work.
1. Use an output message or check the debugger to see if the trigger fired.
2. Use the ignore placement requirements flag in the create-action to ensure that the unit will be created at that point, no matter what.
1- It's not firing when it does not spawn.
2- It's on. Issue seems to be that it's not firing, but I have no idea why. I've tried disabling all but the behavior condition.
Hmm...
Does the unit have the behaviour in the circumstances that it does not fire? It might have somehow been lost.
Behavior is on at the apparent time of death.
Turns out not ALL ranged kills triggers it. Marines have a low probability of triggering. Zealots have a fairly high probability of triggering it. As far as I can tell, Hydralisks ALWAYS trigger it. Ultralisks don't always trigger it.
Any other ideas for what I can try? Not sure where to go from here, I'll check validators and whatnot again. Will try just about anything.