Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
General Development
»
Detect cancel?
Detect cancel?
01-17-2006, 11:05 PM
#1
Taur
Is there a way to detect cancel used in a spellbook? I've tried tons of ways and no luck so far.
01-17-2006, 11:56 PM
#2
PitzerMike
We used to be able to get cancel events with the order id 851976 back in RoC.
Unfortunately this doesn't work any more since TFT.
I don't know any working way to detect it.
01-18-2006, 07:54 AM
#3
qwertyui
cancel meaning closing the spellbook?
01-18-2006, 08:00 PM
#4
Taur
yes closing the spellbook
01-18-2006, 08:39 PM
#5
shadow1500
You cant detect closing a spellbook as far as i know, but u can find if its closed or open anytime by adding a dummy ability to the unit and press its hotkey (use Game - Press UI Key), if the order changed it means that ur outside the spellbook.
01-19-2006, 12:09 AM
#6
Taur
but that would interrupt abilities and things like that