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

Stun instead of pause

Status
Not open for further replies.
Level 2
Joined
Jul 9, 2015
Messages
20
hi
Can used "Stun" in Trigger ?

If not,

please Fix this
  • start ability
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to obtrusion
    • Actions
      • Trigger - Turn on Pause <gen>
      • Wait 10.00 seconds
      • Trigger - Turn on Unpause <gen>
      • Trigger - Turn on unpause off <gen>
  • Pause
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 256.00 of P) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True
            • Then - Actions
              • Unit - Pause (Picked unit)
            • Else - Actions
  • Unpause
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Trigger - Turn off Pause <gen>
      • Unit Group - Pick every unit in (Units within 300.00 of P) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is paused) Equal to True
            • Then - Actions
              • Unit - Unpause (Picked unit)
            • Else - Actions
  • unpause off
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn off Unpause <gen>
      • Trigger - Turn off unpause off <gen>
Thanks
 
Status
Not open for further replies.
Top