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

Leaking Sounds

Status
Not open for further replies.
Level 2
Joined
Apr 22, 2010
Messages
25
I need to clear some sound leaks via a trigger.
I tried to copy this trigger witch works fine for special effects:
  • Actions
    • Custom script: local effect udg_L_EFFECT
    • Set L_EFFECT = (Last created special effect)
    • Wait 2.50 game-time seconds
    • Special Effect - Destroy L_EFFECT
Mine looks like this, but something is wrong with it as i get a error.
  • Actions
    • Custom script: local effect udg_Sound
    • Set Sound = (Last played sound)
    • Wait 2.50 seconds
    • Sound - Destroy Sound
Can anyone correct my mistake or point out a better way to do it ?
 
Level 2
Joined
Apr 22, 2010
Messages
25
I understood about the replacing effect with sound part but that is just about it :)
So now it looks like this and i will see if it works.
  • Actions
    • Custom script: local sound udg_Sound
    • Set Sound = (Last played sound)
    • Wait 2.50 seconds
    • Sound - Destroy Sound
Well i didn't get any errors so that must mean its working. Thanks.
 
Last edited:
Status
Not open for further replies.
Top