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

Sound trigger

Status
Not open for further replies.
Level 3
Joined
Feb 14, 2013
Messages
26
I have a problem with the sound, i have succeed to play the sound I want, when the tower starts to fire. However, after the first shot, the sound stops. I would like to know how to set up it to play the sound as long as its firing
this is my trigger :
  • Events
    • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Field Gatling Gun Equal to (Unit-type of (Attacking unit))
        • Then - Actions
          • Sound - Play 6nong <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Field Gatling Gun Not equal to (Unit-type of (Attacking unit))
            • Then - Actions
              • Sound - Stop 6nong <gen> After fading
            • Else - Actions
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Remove this
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • Field Gatling Gun Not equal to (Unit-type of (Attacking unit))
  • Then - Actions
  • Sound - Stop 6nong <gen> After fading
  • Else - Actions
It would interupt the sound if ANY other unit atacks

Edit// ^^ Faster
 
Status
Not open for further replies.
Top