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

[Trigger] GUI: Unit is channeling

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,650
How do I check if an unit is still channeling a spell?
I want to make it so that a spell takes 3 seconds to summon a unit, and the caster needs to channel the spell for 3 seconds until the unit is summoned. So that it can be canceled by stuns and such.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Hmm....try this:

  • Ability
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Turn on Casting Cancelled
  • Casting Cancelled
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) equal to something or whatever
    • Actions
      • Don't create summoned unit
If there's a better way, I'd like to hear about it.
 
Hmm....try this:

  • Ability
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Turn on Casting Cancelled
  • Casting Cancelled
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) equal to something or whatever
    • Actions
      • Don't create summoned unit
If there's a better way, I'd like to hear about it.

you can just use the event Unit->Stops casting/channeling an ability

EDIT: I'm sure this works when the unit is stunned too.
 
Last edited:
Status
Not open for further replies.
Top