Frictional Games Forum (read-only)

Full Version: Custom sound problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have got a problem with custom sounds
I've created a sound folder in the folder of the custom story
In this sound folder i've created a ogg file with the name Ghost.ogg. In the script I've written
PlaySoundAtEntity("", "Ghost.ogg", "Player_1",0,false);
But in the game nothing happens. Whith other sounds from the game it works.
Have You created a .snt file inside of the sound folder where the .ogg file should be saved?
(01-24-2012, 03:24 PM)trollox Wrote: [ -> ]Have You created a .snt file inside of the sound folder where the .ogg file should be saved?
Now i have tried it but it doesn't work too.
Maybe i transformed the ogg file to snt wrong. I just changed the name
of the file from Ghost.ogg to Ghost.snt
Make a text document. Then change it to .txt to .snt. Now add this:


Quote:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Ghost.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
Make sure they are the same name.