(06-04-2016, 10:58 PM)Xallikk Wrote: Still nothing although I noticed I hear a monster growl when I spawn in. It's not the same as the sound I chose, but it might be related?
.snt files usually contain several diffrent audio clips, thus they randomize which sound to play. The notice sounds in Amnesia usually look like this:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="brute/notice01" />
<Sound File="brute/notice02" />
</Main>
</SOUNDS>
You can see it by yourself by opening the .snt file in any text editor you're using. So in this case, using PlaySoundAtEntity will as I said randomize which sound to play among those 2.
If you want a particular sound to play, I reccomend using this function:
void PlayGuiSound(string& asSoundFile, float afVolume);
Plays a sound, not using 3D.
asSoundFile - the sound to play (extension is .snt)
afVolume - the volume of the sound
In GuiSound function, you just type in the name of the sound which you want to hear, for example "notice02.snt"
Make sure to have the .snt extension as well!