• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Detect Cancel

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
You can detect some, but not all of them. Combining an Issued Order wich can be canceled, and setting a Boolean to "True", then check if the player press ESC while Boolean is True, means "cancel", else, the Cancel order Kala suggested.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
That's why I said "Some (abilities)". Buildings, Constructions, Upgrades, Channel abilities, etc. can be detected, therefore, detect the cancel with ESC or with Cancel Order.
 
after one clicks on the ability and the little targeting cursor comes up

I believe orders are only given once the target is picked, and judging from the quoted statement, he is asking about detecting when a player cancels during the time between the ability click and the choosing of target, meaning no order yet exists... so how will you couple detecting the over-time cancellable order + ESC event if the order doesn't even exist on the first place?

example I click an aoe targeted ability, then before I choose a location on where to cast it, I decided not to cast it... that is the type of cancelling that he wants to detect and not cancelling an on-going ability...

at least that's what I understood from his statement...

edit:

hmmm.... you better try kala's suggestion... though I think it will work for all cancelations, which might not be always good
 
Last edited:
Status
Not open for further replies.
Top