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 will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!
I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!
Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled