• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Detecting autocasting abilities

Status
Not open for further replies.
Is somehow possible to detect whether a unit has an ability set to autocast?
You can order the unit to activate/deactivate autocast. The function will return whether it is succesful or not.
If you have autocasting enabled, the order to enable it will fail. If you have it deactivated, the order to disable it will fail.
Using this method you can detect, whether autocast is active or not. You will have to revert the autocast, if your order changed it.

Detecting orders is not safe, because orders can be issued while the unit is paused (e.g. stunned) but won't be executed if you issue another order before the pause effect runs out.
 
Status
Not open for further replies.
Back
Top