Kiorga(x2)rd
Junior Member
Posts: 43
Threads: 12
Joined: Sep 2011
Reputation:
1
|
.SNT Files Problem
Hello everyone, this is my first post and first custom story. Just thought I'd say that.[/code][/php]
So I've tried to add custom sounds to my Amnesia story and I'm having some problems. I've got the code as so:
void OnStart()
{
PreloadSound("voice.snt");
}
Then I've got some script collision into:
void CollideScriptArea_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "voice.snt", "servant_grunt_1", 0, false);
}
And all works good. I've saved the .snt and .ogg file of "voice" into my custom stories / sounds folder. However what I can't seem to get to work is the .snt file. I works fine enough as in it plays the sound, however the idea of it is to alter the sound properties of the .ogg file right? But whenever I change a property in the .snt file - like changing the volume or if it loops or not and then saving the file, in game it doesn't seem to change it. I could have the volume set to "1", then change it to "4" to no difference in game. Why is this? Am I not doing something correctly? Is my computer screwing up perhaps?
One other thing. When the sound plays, I want to play it at a specific entity. However it seems to be just as loud to me when I'm one meter away from the entity as it does when I'm twenty meters away. What properties can I change to make it more localised to the entity (the further away the softer it gets)? Naturally I must solve my first problem before working out this, but I thought I'd just ask both here.
Thanks in advance.
Apparently the user name "Kiorgaard" isn't accepted by the administrator. Turns out you can't have a name with a double 'a' in it. Odd...
|
|
09-03-2011, 02:33 AM |
|