I want some custom music in the map i am making. I have got it into SDK and placed some buttons, but when i press the buttons in game nothing happens even if the muysic is in the correct place.
Here is how they have been set up:
[IMG]http://i.imgur.com/rz76E.png[/IMG]
I am fairly new to mapping so if anyone can tell me what i'm doing wrong that would be great.
I'm confused as to why you are locking the button and then using "useLocked".
wouldn't it be alot easier to just make a toggle button and do "PressIn" and "PressOut"
I am not really sure how it works, i asked my friend to help me with the buttons so he did them.
Does the music have the right format? It should be a WAV file, PCM format, 44.100 Hz, 16bit, stereo. Those are my working settings. Else you can't hear it ingame, only in Hammer.
[QUOTE=DasMatze;32588857]Does the music has the right format? It should be a WAV file, PCM format, 44.100 Hz, 16bit, stereo. Those are my working settings. Else you can't hear it ingame, only in Hammer.[/QUOTE]
They are MP3, not sure about the rest. Will change them if i can.
You can optimise the amount of needless i/o's by using a couple of logic_relays tied to the button. At the very least, you do not need to reduce a volume when you stop a sound, nor increase the volume when you play it.
Sorry, you need to Log In to post a reply to this thread.