| 01-08-2006, 05:35 AM | #1 |
Does anyone know how to make a trigger that waits until an attack has finished? i want something to happen after the missile actually hits (like a ranged unit). im stumped |
| 01-08-2006, 05:57 AM | #2 |
I dont think this is possible, you can do a complex wait however with point vaules for each unit and distance from target calculation, this may work if the projectile fast and/or there is no significant changes in attack speed, other wise you can use custom value. |
| 01-08-2006, 05:59 AM | #3 |
I think WEU has an event: A unit takes damage. The problem with that then, would be that it considers damage from any source, not just from a unit's attack. |
| 01-08-2006, 06:05 AM | #4 |
Check this out. It has an explanation on how to use the Unit Takes Damage event. http://www.wc3campaigns.net/showthre...=detect+attack I think you can easily adapt something like that to your map, specially if it's only one unit you wanna make this detection. Don't forget to give rep to the tutorial author. |
| 01-08-2006, 06:19 AM | #5 |
If he's using Bash doesn't bash stun regardless of it's timer? |
| 01-15-2006, 04:51 PM | #6 |
That's the point, he is detecting it through the buff bash gives. One way of detecting this would be to create a unit when attack starts, have that unit move exactly as fast as the missile and detect when it collides with the target. That would be the only way I can think of. |
| 01-15-2006, 05:26 PM | #7 |
Using Bash or that means u cant have any channeling spells in the map cuz they would instantly get inturrupted when sum1 attacks. u have to use frost orb, however if u use an orb ability that means u cant have any orb or arrow based abilities on the hero, u have to trigger them using that same method. |
| 01-15-2006, 05:45 PM | #8 |
Actually, this has been solved, I will work in a system that will allow to do that easily http://www.wc3campaigns.net/showthread.php?t=78753 |
