Well, I was trying to make a sound when unit is getting killed by an ability but I coulnd't find a way to do so. Is there anything like, Killing source equal to Thunder Bolt or around it?
Well, in fact this acid bomb will not be casted that fast. Just tested with another dummy unit I already have. Ain't got enough time to cast the spell as Soul Corrpution, Death Coil base spell is killing and he can't cast a spell.
No. I just found out. If you set a wait time you need to take into consideration time the missile will reach the target. As I said it sometimes work if there is a wait on it. I had 0.05 on it. Works if you shot from very close range and doesn't if it's bit far. It's because target is far enough for 0.05 to pass. I just upgraded trigger a bit to get the casting range. Works well. Thanks for help.
Set TempUnit_SC = (Target unit of ability being cast)
Wait 0.05 seconds
If ((TempUnit_SC is alive) Equal to False) then do (Sound - Play headshot <gen>) else do (Do nothing)
Wait 0.05 seconds
If ((TempUnit_SC is alive) Equal to False) then do (Sound - Play headshot <gen>) else do (Do nothing)
Wait 0.05 seconds
If ((TempUnit_SC is alive) Equal to False) then do (Sound - Play headshot <gen>) else do (Do nothing)
Wait 0.05 seconds
If ((TempUnit_SC is alive) Equal to False) then do (Sound - Play headshot <gen>) else do (Do nothing)
Set TempUnit_SC = No unit
The reason it works is that wc3 doesn't play few sounds of the same origin at same time, so basicly whenever unit is killed, according to the distance, sound is played as soon as he is dead. Works and doesn't leak, for all I care...
@ FannyShaver: Minimum possible wait is 0.27 seconds, everything smaller than that will just be rounded up. If you want your trigger to be as accurate as possible, I suggest you to use periodic trigger instead.
@ Hex.16: When unit dies it loses all it's buffs. Though this had nothing to do with your trigger at all, sorry.
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory