Frictional Games Forum (read-only)
Deciding between using 2 sounds with the same filename - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Deciding between using 2 sounds with the same filename (/thread-19361.html)



Deciding between using 2 sounds with the same filename - RedMser - 11-26-2012

There is 2 enabled.snt's in the game's sound folder, but I only want to play the one for the brute, but I have no idea how to tell the game to choose that one.
I am using PlaySoundAtEntity so there is no selection dialogue.

Any help??


RE: Deciding between using 2 sounds with the same filename - The chaser - 11-26-2012

I think there was something like "PlaySoundAtEntity ("", "directory/filename"///////////And moar stuff I don't simply remain.

Hope I helped Wink


RE: Deciding between using 2 sounds with the same filename - FlawlessHappiness - 11-26-2012

No, it's not possible. What you are calling is the .snt file, and sometimes there is only 1 .snt ifle for 5 .ogg files. This makes it play a random sound (i think)

So what you could do, is to copy the right .ogg file, and .snt file, place them in you custom story's sound folder.
Then edit the .snt file, so it works.
Now you can play the sound



I misunderstood...


RE: Deciding between using 2 sounds with the same filename - Damascus - 11-26-2012

You can use directories to distinguish them:

PlaySoundAtEntity("", "brute/enabled.snt", "BruteArea", 0, false);

That should play only the brute enabled sound.


RE: Deciding between using 2 sounds with the same filename - The chaser - 11-26-2012

(11-26-2012, 09:01 PM)Damascus Wrote: You can use directories to distinguish them:

PlaySoundAtEntity("", "brute/enabled.snt", "BruteArea", 0, false);

That should play only the brute enabled sound.
What I said but explained better.


RE: Deciding between using 2 sounds with the same filename - FlawlessHappiness - 11-26-2012

Or sorry, i misunderstood...

Don't mind my reply..