| 05-30-2004, 11:07 PM | #1 |
How does one detect when a unit stops channeling an ability? What I had was: Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Set tempcaster = (Casting unit)
If - Conditions
(Current order of tempcaster) Equal to (Order(monsoon))
Then - Actions
Then Actions
Else - Actions
Else Actions |
| 05-31-2004, 04:14 AM | #2 |
Channel spells have an invisible caster buff you can use to detect when a unit stops channeling an ability. |
| 05-31-2004, 02:13 PM | #3 |
really jj912? Whats the name of the buff or the four digit code I really don't see this buff anywhere. |
| 05-31-2004, 02:16 PM | #4 |
There's a buff, with Earthquake for an example, called Earthquake (Caster). However, Warcraft doesn't seem to recognize it. My problem has been solved, however. It seems Warcraft didn't acknowledge the Casting Unit as the unit who began channeling so I changed it to triggering unit and everything was fine. |
| 05-31-2004, 04:31 PM | #5 |
Isn't there an event: unit finishes channeling/unit stops channeling? One is when it normaly finishes without being interrupted, and the other happens no matter how it finishes... |
| 05-31-2004, 06:18 PM | #6 |
Wait for Condition. Wait until order of x unit is not equal to ORDERSTRING, checking every .1 seconds. Edit: Oh.. you already solved it hehe. |
| 05-31-2004, 06:31 PM | #7 |
I agree with Anitar, that is the better solution instead of polling. You use less performance. The right event has stops casting in it I think or something like that. |
| 05-31-2004, 08:23 PM | #8 |
Well, I suppose pooling can be used if you want to keep event responses such as target point of ability being cast (such functions are not avaliable with the "stops casting an ability" event, I believe), but those can be easily kept in variables (I don't really know how much advanced triggerers use globals, but I know I always keep a point variable handy.) |
| 05-31-2004, 10:21 PM | #9 | |
Quote:
|
