Frictional Games Forum (read-only)
Sound problem - 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: Sound problem (/thread-22212.html)

Pages: 1 2


Sound problem - Lizard - 07-23-2013

I just started a new map. where there is a leak that i got to work perfectly with ps and everything, the only thing that wont work is the sound, and i have no idea why

//First time entering map
///////////////////////////
void OnStart()
{

}

//When entering map
////////////////////////
void OnEnter()
{
PlaySoundAtEntity("WaterFlow", "12_epoxy_flow.snt", "WaterStreamArea", 0.1f, true);
}

//When Leaving map
///////////////////////
void OnLeave()
{

}

And yes, the entity to play the sound at is spelled correctly.


RE: Sound problem - GoranGaming - 07-23-2013

Is the map the second map? Otherwise you have to put it in void OnStart()...


RE: Sound problem - Lizard - 07-23-2013

(07-23-2013, 01:29 PM)GoranGaming Wrote: Is the map the second map? Otherwise you have to put it in void OnStart()...

No it is my first map


RE: Sound problem - No Author - 07-23-2013

I don't know what went wrong with the script. But I'd rather put the "playsoundatentity" script in void OnStart() since it's the first map.


RE: Sound problem - Lizard - 07-23-2013

Dosen't work in OnStart eiter


RE: Sound problem - No Author - 07-23-2013

Try changing the
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0.1ftrue); 

to
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.ogg""WaterStreamArea"0.1ftrue); 



RE: Sound problem - Lizard - 07-23-2013

(07-23-2013, 01:55 PM)No Author Wrote: Try changing the
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0.1ftrue); 

to
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.ogg""WaterStreamArea"0.1ftrue); 

already tryed that. It dosen't work eiter


RE: Sound problem - No Author - 07-23-2013

PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0false); 



RE: Sound problem - Lizard - 07-23-2013

(07-23-2013, 02:00 PM)No Author Wrote:
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0false); 

Thats already tryed that as well.

Almost tryed every thing with the callback/command it self


RE: Sound problem - GoranGaming - 07-23-2013

I used this line in one of my custom stories, it worked:

PlaySoundAtEntity("Water1", "12_epoxy_flow", "ParticleArea1", 0, true);

So try to remove the .snt extension