Door sounds

Go down

Door sounds Empty Door sounds

Post by Soap94 on Wed Feb 01, 2012 6:31 pm

Maybe this is quite a stupid question, but anyways:

I made an lmd_door and each time you use it I want it to make a sound (sound/movers/doors/door_huge_start.mp3). So I tried using the target key on the door, didn't work, and tried using a target_relay that targets both the door and the sound, it worked, but the sound kept playing over and over again. What's wrong? It'd be easier if lmd_door had a soundset key.. ¬¬
Soap94
Soap94
New User
New User

Posts : 19
Join date : 2012-01-16
Age : 25
Location : Argentina

http://lugormod.org

Back to top Go down

Door sounds Empty Re: Door sounds

Post by Zkyo on Thu Feb 02, 2012 11:14 am

You should just be able to have the lmd_door's target point to a target_speaker placed near the door itself. Do you have spawnflags,1 on the target_speaker? That will loop the sound too.
avatar
Zkyo
Admin
Admin

Posts : 384
Join date : 2010-03-29
Age : 26
Location : Grand Rapids, Michigan, USA

https://lugorhelp.forumotion.com

Back to top Go down

Door sounds Empty Re: Door sounds

Post by Soap94 on Thu Feb 02, 2012 10:00 pm

It works but it doesn't loop the sound, not even with spawnflags 1, i'll try to change the sound file.
Soap94
Soap94
New User
New User

Posts : 19
Join date : 2012-01-16
Age : 25
Location : Argentina

http://lugormod.org

Back to top Go down

Door sounds Empty Re: Door sounds

Post by Cor on Tue Oct 30, 2012 5:49 pm

Put spawnflags 0 to the target_speaker and it works. Only those around can hear the snd, it starts off and doesn't loop. For my rentable house, the rentable terminal (a button) targets house_door. So it targets both the door and the target_speaker (both have targetname house_door). No need of target_relay in that case.

EDIT: Actually now I have the button targets house_door, and the door targets the sound. This way people won't spam the sound by constantly pressing the button because the sound only plays when the door opens and not when you click the button.
Cor
Cor
Standard Member
Standard Member

Posts : 28
Join date : 2012-01-09

Back to top Go down

Door sounds Empty Re: Door sounds

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum