Tremulous Forum
Media => Mapping Center => Topic started by: striker on May 04, 2009, 06:42:55 am
-
I'm kinda making a few maps i was looking around messing with some controls for make making , seems I'm making a base any one know how to make a button start an alarm (sound loop) and push it again to stop it. Ill appreciate it if some one can help. ???
thanks
-
Make a target_speaker (There's a looping key/checkbox in the entity window ('N')) then link a button/trigger to it (Ctrl K). Issue is afaik with standard code you can't stop the sound once its been triggered. (I beleive the 'Advanced Map Patch' (Mod) fixes this).
One possible solution is edit the sound effect to make it longer then don't have it loop (So it'll play for a bit but not forever).
-
thankz m8 much appreciated :D
-
mmmm im back for some reson when i try to push the button it dose nothing, the button dont move eather, well i tryed any way thankx any way
-
Just make sure the button is "func_button" and that you did not add "health" key. If you have "health" key then you need to damage the button until you have done damage equal or more than the value set in "health" key. Also the sound needs to be *.Wav format and Mono. I am not sure but I also think the rate of the audio should be 22050 Hz
-
A targetname key on buttons also makes them not work :(.
-
Ah yes. But I don't see reason to add "targetname" on them.
-
There is a bug in trem that you cannot turn off looping sounds.