Tremulous Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Come Chat with us live! Learn how
HERE!
Home
Help
Search
Login
Register
Tremulous Forum
»
Media
»
Mapping Center
»
Alarm and stuff/button
Print
Pages: [
1
]
Go Down
Author
Topic: Alarm and stuff/button (Read 3941 times)
striker
Posts: 9
Turrets: +1/-0
Alarm and stuff/button
«
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
Logged
Knowitall66
Posts: 492
Turrets: +70/-52
Re: Alarm and stuff/button
«
Reply #1 on:
May 04, 2009, 08:48:34 am »
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).
Logged
striker
Posts: 9
Turrets: +1/-0
Re: Alarm and stuff/button
«
Reply #2 on:
May 04, 2009, 10:46:49 am »
thankz m8 much appreciated :D
Logged
striker
Posts: 9
Turrets: +1/-0
Re: Alarm and stuff/button
«
Reply #3 on:
May 15, 2009, 07:44:07 am »
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
Logged
whitebear
Posts: 659
Turrets: +35/-20
Re: Alarm and stuff/button
«
Reply #4 on:
June 09, 2009, 10:45:25 pm »
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
Logged
UniqPhoeniX
Spam Killer
Posts: 1376
Turrets: +66/-32
Re: Alarm and stuff/button
«
Reply #5 on:
June 10, 2009, 02:28:53 am »
A targetname key on buttons also makes them not work
.
Logged
Ingar's NetRadiant
whitebear
Posts: 659
Turrets: +35/-20
Re: Alarm and stuff/button
«
Reply #6 on:
June 10, 2009, 05:23:48 am »
Ah yes. But I don't see reason to add "targetname" on them.
Logged
==Troy==
Posts: 440
Turrets: +65/-67
Re: Alarm and stuff/button
«
Reply #7 on:
June 10, 2009, 01:09:16 pm »
There is a bug in trem that you cannot turn off looping sounds.
Logged
Print
Pages: [
1
]
Go Up
Tremulous Forum
»
Media
»
Mapping Center
»
Alarm and stuff/button