• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How do I cancel Channel?

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
973
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
973
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