• 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 I cancel Channel?

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
978
I have a channel ability with "Disable Other Abilities" set to true.
I want to make it channel until certain conditions are met - not a constant time.
I'll make it last 10 sec or something (it will take less than 5 sec for the condition to happen), and I want to stop chanelling it.
Question is: how do I do that?
 
Level 12
Joined
May 22, 2015
Messages
1,051
Can you tell the unit to stop? I haven't used Channel for anything, so I don't know if that works, but I know telling a unit to stop makes them stop channelling a spell normally :p
 
Level 13
Joined
Jan 2, 2016
Messages
978
Neither stop, neither pause/unpause works.
Combining them doesn't work either
  • Test
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Unit - Order Master Warlock 0181 <gen> to Stop
      • Unit - Pause Master Warlock 0181 <gen>
      • Unit - Order Master Warlock 0181 <gen> to Stop
      • Unit - Unpause Master Warlock 0181 <gen>
      • Unit - Order Master Warlock 0181 <gen> to Stop
Tried doing this as well, but still no luck:
  • Test
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set TempPoint = (Position of Master Warlock 0181 <gen>)
      • Unit - Move Master Warlock 0181 <gen> instantly to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
EDIT: Hmm, even stunning the unit doesn't help >.<
  • Test
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set TempPoint = (Position of Master Warlock 0181 <gen>)
      • Unit - Create 1 Dummy for Player 1 (Red) at TempPoint facing Default building facing degrees
      • Unit - Add Hurl Boulder to (Last created unit)
      • Unit - Order (Last created unit) to Neutral - Hurl Boulder Master Warlock 0181 <gen>
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Last edited:
Level 12
Joined
May 22, 2015
Messages
1,051
Could try moving the unit by triggers (to the same location)? That would avoid the CD issue if it works?

That stops channelling normally because the "Move Unit (Instantly)" action also tells the unit to "stop". I imagine it won't do anything in this case. Might be worth a try, though.
 
Status
Not open for further replies.
Top