• 🏆 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!

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