Frictional Games Forum (read-only)

Full Version: Sound problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
Is the map the second map? Otherwise you have to put it in void OnStart()...
(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
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.
Dosen't work in OnStart eiter
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); 
(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
PHP Code:
PlaySoundAtEntity("WaterFlow""12_epoxy_flow.snt""WaterStreamArea"0false); 
(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
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
Pages: 1 2