• 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.

How do you detect stuns?

Status
Not open for further replies.
Level 2
Joined
Mar 27, 2013
Messages
9
I thought I could catch the order on EVENT_PLAYER_UNIT_ISSUED_ORDER, and then compare the issued order to the Stunned order ID (which is 851973), but it doesn't work for me. Any ideas?
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
What?

"Stunned" is a buff, its not an order ID. an order ID would be Storm Bolt, Carrion Swarm, smart, etc.

If you want to detect if the unit is casting a spell that stuns, you have to index every spell that stuns and you want to add and check if its any of those spells

You can also use a damage engine and check if it has the "Stunned" buff on hit
 
Status
Not open for further replies.
Top