• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] detecting the cancel of an order/ability (before it is activated)

Status
Not open for further replies.
you know when you click an ability's icon/press an ability's hotkey the command card turns blank except for one order; cancel (ESC)?

i wud like to know how to detect the cancel WITHOUT THE SKIP CINEMATIC DETECTION SYSTEM.

i noe that
a) it has been asked before
b) it is doable

EDIT: i have devised two possible ways which i shall test;
1. from looking at the open source version of TcX, apparently ToadCop used an 'item permanent health gain' ability for his jump. im not sure how this works
2. i thought up creating two abilities; A (hotkey A) is an instant-cast (like berzerk, thunder clap etc) and B (hotkey B) is target-cast. ill use this trigger;
Every 0.01 seconds:
-Force UI key press A
-Force UI key press B
hopefully, the result is if A is detected as casted, that means B has been cancelled. this might be useful for a lot of others.

EDIT 2: i tested solution 2 and it does indeed work. solved by myself i guess
 
Last edited:
Status
Not open for further replies.
Top