Latest topics
» Help with trigger_usescript
Thu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Thu Sep 22, 2016 7:03 am by Ufo

» Single Round Team Quest
Thu Jul 23, 2015 10:39 pm by agent6141

» iobject terminal
Thu Sep 25, 2014 2:39 pm by flanagon

» Usefull Downloads
Thu Aug 07, 2014 12:35 am by Kimmeh

» Television
Thu Jan 09, 2014 2:25 am by Mr. Swister

» Lugormod U# on server
Wed Jan 08, 2014 11:08 pm by Shadow

» Teleporter with effects
Thu Jan 02, 2014 5:51 am by Pierry

» Some possibly useful addons
Thu Jan 02, 2014 5:50 am by Pierry


Door sounds

View previous topic View next topic Go down

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
New User
New User

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

View user profile http://lugormod.org

Back to top Go down

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.

Zkyo
Admin
Admin

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

View user profile http://lugorhelp.forumotion.com

Back to top Go down

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
New User
New User

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

View user profile http://lugormod.org

Back to top Go down

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
Standard Member
Standard Member

Posts : 28
Join date : 2012-01-09

View user profile

Back to top Go down

Re: Door sounds

Post by Sponsored content Today at 1:16 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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