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

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