Frictional Games Forum (read-only)
Help with sound - 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: Help with sound (/thread-19584.html)



Help with sound - Storfigge - 12-18-2012

Why wont this work? I've checked the forums and sat for a freaking hour trying to fix it -.- nothing seems to work? I've made an .snt file according to the wiki but again it wont work.

Heres the code



void OnStart()
{
AddEntityCollideCallback("Player", "Scream1", "sound", true, 1);

}




void sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scream.ogg", "Player", 0, true);
}



void OnEnter()
{
}


void OnLeave()
{
}


RE: Help with sound - The chaser - 12-18-2012

(12-18-2012, 02:04 PM)Storfigge Wrote: Why wont this work? I've checked the forums and sat for a freaking hour trying to fix it -.- nothing seems to work? I've made an .snt file according to the wiki but again it wont work.

Heres the code



void OnStart()
{
AddEntityCollideCallback("Player", "Scream1", "sound", true, 1);

}



void sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scream.snt", "Player", 0, true);
}


void OnEnter()
{
}

void OnLeave()
{
}
Sounds extension is .snt, not .ogg. That one is for music. The .snt format is a text format with a sound file (an .ogg) and it gives it some certain properties (loop, volume, etc)


RE: Help with sound - Storfigge - 12-18-2012

(12-18-2012, 02:11 PM)The chaser Wrote:
(12-18-2012, 02:04 PM)Storfigge Wrote: Why wont this work? I've checked the forums and sat for a freaking hour trying to fix it -.- nothing seems to work? I've made an .snt file according to the wiki but again it wont work.

Heres the code



void OnStart()
{
AddEntityCollideCallback("Player", "Scream1", "sound", true, 1);

}



void sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scream.snt", "Player", 0, true);
}


void OnEnter()
{
}

void OnLeave()
{
}
Sounds extension is .snt, not .ogg. That one is for music. The .snt format is a text format with a sound file (an .ogg) and it gives it some certain properties (loop, volume, etc)
Lol I thought I tried .snt earlier but apparently I hadn't Tongue thanks!