• 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.

Sound trigger doesn't work

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
This sound trigger doesn't work.

  • Actions
    • Sound - Play MetalLightSliceMetal1 <gen>
    • Wait 1.00 seconds
    • Sound - Destroy MetalLightSliceMetal1 <gen>
Somebody knows why not? Because this trigger works:

  • Sound - Play Credits <gen>
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
Playing sound works for me for the first time...

If you are trying to play multiple sound at the same time,it won't work,I don't prefer using waits for gui spells,it leaks +__+...,try save the sound to a variable, create a unit,and give expiration timer,add that unit to event which when unit dies,destroy sound in that variable.I use this method to destroy some variables that needs destroying after a few secs

I don't knw why your sound didn't play,but I used that same sound for my spell,and it works perfectly! :D..if there's another sound being played,the new sound won't play
 
Level 11
Joined
Dec 5, 2009
Messages
846
Its not a spell :p And i did like this now. Still doesn't work..

  • Untitled Trigger 004
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Sound - Stop the currently playing music theme
      • Set Sound = MetalLightSliceMetal2 <gen>
      • Sound - Stop (Last played sound) Immediately
      • Sound - Play Sound at 100.00% volume, attached to Waaslag 0007 <gen>
      • Sound - Destroy Sound
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
Uh...what I was trying to show is that ,

A way to destroy leak,when you need "wait" in gui..

I don't think you need to put it to a variable there ,

And I seen in another thread,that destroying sound is really dangerous,I don't know what it meant,maybe you shouldn't use it...
Try normally,I prefer not destroying it,
"It could make that sound unplayable for the whole game,until you restart your map"
And I mostly use play 3d sounds.

Anyway,try this out
Event
Every 6 seconds of gametime
Action
Set TempPoint = position of whatever
Play 3D sound "metal slice" at 100% vol at TempPoint
Custom script : call destroy ugd_TempPoint

See if that works,if not,I dunno.
Try uncheck play 3D sound,but play it as 3d sound,it would give you un3D sound but with 3D sound trig
 
Status
Not open for further replies.
Top