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

Simple question

Status
Not open for further replies.
Level 3
Joined
Sep 30, 2011
Messages
60
Hi, guys i just wanna know how to stop the unit from casting the skill when he dies.

like when some guy is casting channeling spell and he died during his channeling.. how can i stop the trigger?

and can someone give me a good small hero arena template or example that will fit anime characters?? thanks :goblin_yeah:
 
Last edited:
Level 3
Joined
Apr 4, 2006
Messages
33
correct me if i'm wrong, but you cant stop a running trigger even with a second one with "unit stops channeling", the first one is still running.

you have to check if casting unit is alive before damage and special effects come up.
it could look like this


  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
    • Actions
      • -------- start channeling ability --------
      • Wait 5.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Casting unit) is alive) Equal to True
        • Then - Actions
          • -------- next step --------
        • Else - Actions
          • -------- cancel --------
 
Status
Not open for further replies.
Top