Hey I found a post from GR1 that says i can:
playSound("mod_assets/sounds/sound_name.wav")
I put a wav file in there and called for it, but it says no sound exists? anyone know what I need to do here?
custom wav file not working?
Re: custom wav file not working?
.wav sound files need to be 44,100 Hz, 16 bit and mono (you can do this in Audacity) otherwise they will not even load.
.ogg music files only need to be 44,100 Hz as far as i know. and can be stereo
http://grimwiki.net/wiki/Custom_Sound_Tutorial here's a handy tutorial/guide
the entry in your sounds text file (in the scripts folder) also needs to look like this
Additionally, in-game you can create a 'sound' asset, then un-tick 'sound' in the inspector and have a trigger that, when pressed, it will activate the sound.
.ogg music files only need to be 44,100 Hz as far as i know. and can be stereo
http://grimwiki.net/wiki/Custom_Sound_Tutorial here's a handy tutorial/guide
the entry in your sounds text file (in the scripts folder) also needs to look like this
Additionally, in-game you can create a 'sound' asset, then un-tick 'sound' in the inspector and have a trigger that, when pressed, it will activate the sound.
-
- Posts: 28
- Joined: Tue Oct 21, 2014 5:51 am
Re: custom wav file not working?
Ah okay. Ive avoided those .lua things! Thanks for the direction.
-
- Posts: 28
- Joined: Tue Oct 21, 2014 5:51 am
Re: custom wav file not working?
got it! Thanks