Warcraft III resources & community, 2003–2006 · archived

Detecting whether a unit is still casting or not

5 posts
#1

Detecting whether a unit is still casting or not

Hi I made a charge spell so if you wait it gets stronger, but I want to know if you can actually detect whether the triggering unit is still channeling the spell or not. I haven't been able to find it, but maybe you know it. Thanks in advance.

Meneersleutel
#2
you check the unit's current order. if it is same as order of the ability then increase,get the spell stronger else.. you know what actions will you do
#3
Actually, there is a simpler method, but it involves three triggers.

Check my spells tutorial (it is stickied here) at the channeling chapter. Read the chapter, especially the coding. Here you will need in the second step to keep the strength of the spell in a variable, and increase it with each repeat of the trigger. It's much safer than orders.

~Daelin
#4
If it is a charge spells, it will stop casting the spell at the time you move the unit...

And the answer is The Event Stops casting an ability
#5

Detecting whether a unit is still casting or not

thanks for your replies, I've chosen the one vexorian told me, and it seems to be working, but thanks to all of you!