Hi again everyone! I'm facing a new problem and looking to see if anyone's got any suggestion on how to give the credit of a kill earned by a transporter to its cargo/passenger. I have a transport that can hold only 1 unit at a time... and I would like to award its kills to the hero that loaded into it.
I found an effect and a behavior called KillsToCaster that are used by Vulture's spider mines and I was thinking that an elegant solution would be to use something similar in order to meet my needs. Is it possible?
Another solution would be using triggers, but I don't know how to use them properly for my purposes because it would be necessary to remove a kill from the transport and award it to the hero.
to the caster of these abilities instead of the missiles.
I've used this before and it works, if you look in the effects chains of say the vulture or the infestor they apply an effect which applies the behavior and that pair of actions sets the 'caster' to be the originating unit. So for you you'd want to have some method of each unit that boards this transport to apply that same set of actions and then undo them whenever it disembarks. Now far as I know this handles kills, I haven't used it with tracking experience or anything else and do know it doesn't actually edit the 'killing unit' in an event unit dies, so its limited but it definitely did track kills back to the right unit for me.
Hi again everyone! I'm facing a new problem and looking to see if anyone's got any suggestion on how to give the credit of a kill earned by a transporter to its cargo/passenger. I have a transport that can hold only 1 unit at a time... and I would like to award its kills to the hero that loaded into it.
I found an effect and a behavior called KillsToCaster that are used by Vulture's spider mines and I was thinking that an elegant solution would be to use something similar in order to meet my needs. Is it possible?
Another solution would be using triggers, but I don't know how to use them properly for my purposes because it would be necessary to remove a kill from the transport and award it to the hero.
to the caster of these abilities instead of the missiles.
I've used this before and it works, if you look in the effects chains of say the vulture or the infestor they apply an effect which applies the behavior and that pair of actions sets the 'caster' to be the originating unit. So for you you'd want to have some method of each unit that boards this transport to apply that same set of actions and then undo them whenever it disembarks. Now far as I know this handles kills, I haven't used it with tracking experience or anything else and do know it doesn't actually edit the 'killing unit' in an event unit dies, so its limited but it definitely did track kills back to the right unit for me.