• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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