Frictional Games Forum (read-only)

Full Version: Custom sounds not working!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
My sound file's name: sound_01_thunders_and_rain.ogg
I made an .snt file:
Code:
<SOUNDENTITY> <SOUNDS>    <Main>      <Sound File="sound_01_thunders_and_rain.ogg" />       </Main>   </SOUNDS>  <PROPERTIES Volume="0.5" MinDistance="20" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="True" Loop="True" Use3D="False" Blockable="False" BlockVolumeMul="0.5" Priority="0" /></SOUNDENTITY>


Still it's not working when I try to put it in-game or use PlaySoundAtEntity()
Need your in game script too.
(04-22-2012, 04:22 PM)JetlinerX Wrote: [ -> ]Need your in game script too.
Actually i mean with "in-game" that i select in level editor sounds and add my sound there
Try removing .ogg from the sound file name.
No, you need the .ogg, try following this tutorial: http://wiki.frictionalgames.com/hpl2/tut...cript/page
(04-23-2012, 05:51 PM)Stepper321 Wrote: [ -> ]No, you need the .ogg, try following this tutorial: [url]http://wiki.frictionalgames.com/hpl2/tut...cript/page[/url]
I've done my things just like in tutorial
Can i get your script file please?
(04-23-2012, 07:16 PM)Stepper321 Wrote: [ -> ]Can i get your script file please?
Code:
void OnStart(){
PlaySoundAtEntity("", "sound_01_thunders_and_rain.snt", "Player", 0, false);}


(04-24-2012, 06:22 PM)tappara97 Wrote: [ -> ]
(04-23-2012, 07:16 PM)Stepper321 Wrote: [ -> ]Can i get your script file please?
Code:
void OnStart(){
PlaySoundAtEntity("", "sound_01_thunders_and_rain.snt", "Player", 0, false);
}
Mmmm, I ain't sure. Press enter after the ;, so it looks what i made it like in the quote, it's exactly the same function tough. Try it on 'void OnEnter(){ ... }'

Remember to always render sounds used for PlaySoundAt in "Mono" format. Add that to your tutorial as well :>
Pages: 1 2