The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.SNT Files Problem
Kiorga(x2)rd Offline
Junior Member

Posts: 43
Threads: 12
Joined: Sep 2011
Reputation: 1
#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
Find


Messages In This Thread
.SNT Files Problem - by Kiorga(x2)rd - 09-03-2011, 02:33 AM
RE: .SNT Files Problem - by MegaScience - 09-03-2011, 02:55 AM
RE: .SNT Files Problem - by ingedoom - 03-08-2012, 08:02 AM
RE: .SNT Files Problem - by ingedoom - 03-08-2012, 10:40 PM



Users browsing this thread: 1 Guest(s)