Judith on 10/4/2016 at 14:00
<STRIKE>If it's a one-shot sound, this would be more simple and effective way to handle it (without the last action).</STRIKE>
pojkvaskern on 10/4/2016 at 14:54
I tried that also, but no sound in game :(
It is a victrola that I want to start playing a song by itself when Garrett enters a room, so it is probably better to have the sound coming from the object itself instead of in 2D. :)
I also noticed that when I close and reopen the editor, the sound file I chose in the "Change"-button in the sound schema is missing (the folder and file is there but not the .wav-file I specified). After choosing it one more time and saving it still disappears when I close and reopen the editor. So I suspect I must have missed something there...
Judith on 10/4/2016 at 21:26
Ok, that requires more complex approach. First of all, remember to have your file in mono to hear it as an ambient sound. Here's my example of in Schema browser.
Inline Image:
https://s22.postimg.org/3se1aw3yp/Clipboard02.jpgNotice that the boxes for looping are unchecked. You can also edit all these parameters the .sch file with Notepad.
If you click Save this schema button, and then close the window, everything should work fine. Now place a marker in your level, put the sound in it, and test it. It should play as soon as you start the map, since that's how ambient sound markers are treated.
Now, to have an ambient sound triggered by a volume, you need to stop playing it first, and then trigger it by going through the volume. Put these two scripts in your marker:
Inline Image:
https://s30.postimg.org/xl0x6mv3l/03.jpgAll you got to do now is to create a TriggerScript link from your marker to your volume, and test it.
[Edit] ProTip: if you don't want to wait forever for the Schema Browser to load, zip the Schemas folder, delete it and move the .zip file away from the Sounds folder. These are mostly AI Barks and T3 Story specific conversations. You won't need them, and the editor will use the .csc file for barks anyway. Now you'll have like 800 schemas insead of 14k, which should load the Browser in like 2 seconds ;)
pojkvaskern on 15/4/2016 at 15:28
Awesome, thanks a lot Judith!
Now I can create some really nice sound effects for my mission.
:thumb: