I have a unit that makes creep tumors. When the tumors die, they spawn broodlings, like normal zerg buildings. I want to make it so when the broodlings kill something, kill credit goes to the unit that created the creep tumor.
I tried giving both the broodlings and the tumor the KillstoCaster behavior, as well as modifying the behavior to make it Kills to Source, Unit Origin etc. I think the problem here is that the broodlings are trying to give their kills to the tumor so they can in turn be given to the creating unit, but the tumor is dead so the chain is broken.
If it is indeed the death causing the problem (which it does, if no other problems arise), set the Death Time of the tumor to be longer than the duration of the broodlings.
Unfortunately, that did not work. I tried every option available under Kill Credit+ with multiple combinations on the Tumor and the Broodlings with no success. I ended up just triggering the effect I wanted, but if there is a way to do this in the data editor, I would prefer that.
I tried giving both the broodlings and the tumor the KillstoCaster behavior
How did you "give" the behaviors to the unit? You have to make sure, the behavior is applied by the caster; just giving them the behavior in the units tab won't work.
I applied the behavior to the tumor via the create effect but I did just add the behavior onto the Broodlings. I'll try and put it in the create effect for those as well and see what happens.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a unit that makes creep tumors. When the tumors die, they spawn broodlings, like normal zerg buildings. I want to make it so when the broodlings kill something, kill credit goes to the unit that created the creep tumor.
I tried giving both the broodlings and the tumor the KillstoCaster behavior, as well as modifying the behavior to make it Kills to Source, Unit Origin etc. I think the problem here is that the broodlings are trying to give their kills to the tumor so they can in turn be given to the creating unit, but the tumor is dead so the chain is broken.
How else can I accomplish this?
If it is indeed the death causing the problem (which it does, if no other problems arise), set the Death Time of the tumor to be longer than the duration of the broodlings.
@Kueken531: Go
Unfortunately, that did not work. I tried every option available under Kill Credit+ with multiple combinations on the Tumor and the Broodlings with no success. I ended up just triggering the effect I wanted, but if there is a way to do this in the data editor, I would prefer that.
How did you "give" the behaviors to the unit? You have to make sure, the behavior is applied by the caster; just giving them the behavior in the units tab won't work.
@Kueken531: Go
I applied the behavior to the tumor via the create effect but I did just add the behavior onto the Broodlings. I'll try and put it in the create effect for those as well and see what happens.