• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] GUI: Unit is channeling

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,651
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,240
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